Skip to content

Commit 0dbb574

Browse files
committed
fix(canary-release): use NODE_AUTH_TOKEN for xyd-js npm publish [skip ci]
Add registry-url to setup-node and pass NODE_AUTH_TOKEN env var to match the auth setup used by cli-release.yml.
1 parent 9196432 commit 0dbb574

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/cli-canary.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: ${{ matrix.node-version }}
33+
registry-url: 'https://registry.npmjs.org'
3334

3435
- name: Setup pnpm
3536
uses: pnpm/action-setup@v4
@@ -105,6 +106,8 @@ jobs:
105106
106107
echo "📦 Publishing xyd-js@0.0.0-${{ steps.version.outputs.CANARY_VERSION }} with canary tag"
107108
npm publish --tag canary
109+
env:
110+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108111

109112
- name: ✅ Success
110113
run: |

0 commit comments

Comments
 (0)