Skip to content

Commit

Permalink
ci(release): set npm token via env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Oct 17, 2022
1 parent ae38db2 commit e32972d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Expand Up @@ -35,10 +35,11 @@ jobs:
run: pnpm install
- name: Publish Packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
"npm_config_//registry.npmjs.org/:_authToken": ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm release
pnpm publish --filter=@pnpm/exe --tag=next-7 --access=public
pnpm publish --filter=!pnpm --filter=!@pnpm/exe --access=public
pnpm publish --filter=pnpm --tag=next-7 --access=public
- name: Copy Artifacts
run: pnpm run copy-artifacts
- name: Generate release description
Expand Down

0 comments on commit e32972d

Please sign in to comment.