Skip to content

Commit

Permalink
ci: npm for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Dec 27, 2023
1 parent 76a58fc commit 1b4cb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/next-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ jobs:
TAG=$([[ '${{ github.event.inputs.prNumber }}' == '' ]] && echo 'next' || echo 'pr-${{ github.event.inputs.prNumber }}')
npm version --git-tag-version=false $(jq --raw-output '.version' package.json)${TAG}.$(date +%s)
pnpm publish --tag ${TAG} || true
npm publish --tag ${TAG} || true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
echo ::set-output name=version::$variable
- name: Publish a NPM package
run: pnpm publish --tag latest
run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

Expand Down

0 comments on commit 1b4cb9e

Please sign in to comment.