Skip to content

Commit

Permalink
ci: add NPM_TOKEN (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisre authored Mar 20, 2023
1 parent ab1c50a commit c433ba0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,12 @@ jobs:

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Npm token
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: '${{secrets.NPM_TOKEN}}'

- name: Publish
run: npx semantic-release
env:
NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}'
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'

0 comments on commit c433ba0

Please sign in to comment.