Skip to content

Commit

Permalink
ci: fix publishing next releases
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed May 19, 2024
1 parent 8ffcab5 commit 89d28f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,21 @@ jobs:
with:
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Bump Version
run: yarn cliff-jumper --preid "next.$(git rev-parse --verify --short HEAD)"
- name: Publish to Yarnpkg
- name: Publish to NPM
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
# yarn npm publish --tag next
yarn config set npmPublishRegistry "https://registry.npmjs.org"
yarn npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to GitHub
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://npm.pkg.github.com"
# yarn npm publish --tag next
yarn npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 89d28f7

Please sign in to comment.