xonecas.io
719
Le

lextide / commit 9696b94

chore: configure npm auth for publish workflow

xonecas2026-04-11 9696b94c8f386862398f08155bb2ddedd8cc6199 parent c131e83

1 file changed

.github/workflows/publish.yml+5−4
@@ -37,13 +37,14 @@ jobs:
3737 - name: Build package
3838 run: bun run build
3939
40+ - name: Configure npm auth
41+ run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
42+ env:
43+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
4045 - name: Dry-run publish
4146 run: bun publish --dry-run --access public
42- env:
43- NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
4447
4548 - name: Publish to npm
4649 if: github.event_name == 'push'
4750 run: bun publish --access public
48- env:
49- NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}