Skip to content

Commit

Permalink
fix: issue to publish at the same time (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
derschnee68 committed Nov 28, 2023
1 parent dbb0a62 commit 9f9d292
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,18 @@ jobs:
name: Publish pre-release to npm and GitHub packages
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
npm publish ${{env.DistDirectory}} --tag rc --access public
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > .npmrc
npm publish --tag --rc --access public
npm publish ${{env.DistDirectory}} --tag rc --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_DASCHBOT}}
- if: "!github.event.release.prerelease"
name: Publish release to npm and GitHub packages
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
npm publish ${{env.DistDirectory}} --access public
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}" > .npmrc
npm publish --access public
npm publish ${{env.DistDirectory}} --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN_DASCHBOT}}

Expand Down

0 comments on commit 9f9d292

Please sign in to comment.