Merge pull request #316 from rowboatlabs/action

add rowboatx npm publish flow
This commit is contained in:
Ramnique Singh 2025-11-25 20:44:01 +05:30 committed by GitHub
commit 4e989342fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 63 additions and 1 deletions

View file

@ -23,4 +23,25 @@ jobs:
- name: Build Rowboat
run: npm run build
working-directory: apps/rowboat
working-directory: apps/rowboat
build-rowboatx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache-dependency-path: 'apps/rowboat/package-lock.json'
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
working-directory: apps/cli
- name: Build Rowboat
run: npm run build
working-directory: apps/cli

41
.github/workflows/x-publish.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Publish to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Install deps
run: npm ci
working-directory: apps/rowboat
# optional: run tests
# - run: npm test
- name: Build
run: npm run build
working-directory: apps/rowboat
- name: Pack
run: npm pack
working-directory: apps/rowboat
- name: Publish to npm
run: npm publish --access public
working-directory: apps/rowboat
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}