From 5be3b5c62fa51e2e6495fda47dc8ca6a4e9545fe Mon Sep 17 00:00:00 2001 From: Ramnique Singh <30795890+ramnique@users.noreply.github.com> Date: Tue, 25 Nov 2025 20:36:10 +0530 Subject: [PATCH] add rowboatx npm publish flow --- .github/workflows/rowboat-build.yml | 23 +++++++++++++++- .github/workflows/x-publish.yml | 41 +++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/x-publish.yml diff --git a/.github/workflows/rowboat-build.yml b/.github/workflows/rowboat-build.yml index f9e02fc0..a764f752 100644 --- a/.github/workflows/rowboat-build.yml +++ b/.github/workflows/rowboat-build.yml @@ -23,4 +23,25 @@ jobs: - name: Build Rowboat run: npm run build - working-directory: apps/rowboat \ No newline at end of file + 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 \ No newline at end of file diff --git a/.github/workflows/x-publish.yml b/.github/workflows/x-publish.yml new file mode 100644 index 00000000..ef2b0fa5 --- /dev/null +++ b/.github/workflows/x-publish.yml @@ -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 }} \ No newline at end of file