Skip to content

Commit

Permalink
try auth like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed May 29, 2024
1 parent 89ba1ec commit dbfab13
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ jobs:
with:
node-version: 18.18
cache: 'npm'
scope: '@takaro'
registry-url: 'https://registry.npmjs.org'

- run: ./scripts/dev-init.sh

- run: npm -w packages/${{ matrix.package.name }} publish --provenance --access public --verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Authenticate with NPM
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- run: npm -w packages/${{ matrix.package.name }} publish --access public --verbose

0 comments on commit dbfab13

Please sign in to comment.