Skip to content

Commit

Permalink
chore: fix releasing token (#6882)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 12, 2022
1 parent fcb53a3 commit 5e26d5f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Expand Up @@ -26,11 +26,20 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- name: Install deps
run: pnpm install

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package
run: pnpm run ci-publish -- ${{ github.ref_name }}
env:
Expand Down

0 comments on commit 5e26d5f

Please sign in to comment.