From 9c05a795a2bd6bab713a1bebedf40f8256e5805d Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Fri, 12 Dec 2025 11:00:14 +0000 Subject: [PATCH] Separate build and publish tasks --- .github/workflows/npm-publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index b9beda0..f8c8edd 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -10,7 +10,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - id-token: write steps: - uses: actions/checkout@v4 with: @@ -24,4 +23,17 @@ jobs: - run: npm install - run: npm run build - run: npm test + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.inputs.branch }} + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" - run: npm publish --access public