Skip to content

Commit 087f286

Browse files
committed
Update cli workflow to use NPM_CONFIG_TOKEN env and production flags
1 parent 3ec8016 commit 087f286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/npm-publish-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292

9393
- name: Publish to npm
9494
working-directory: ./libs/typescript/cua-cli
95-
run: |
96-
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
97-
bun publish --tolerate-republish
95+
env:
96+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
97+
run: bun publish --production --access public --tolerate-republish
9898

9999
create-release:
100100
needs: [build-and-publish, publish-npm]

0 commit comments

Comments
 (0)