From 89d28f7ba4ec069d35b97418178d6da6fa6aea89 Mon Sep 17 00:00:00 2001 From: Jeroen Claassens Date: Sun, 19 May 2024 16:35:13 +0200 Subject: [PATCH] ci: fix publishing next releases --- .github/workflows/continuous-delivery.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index ecb3125..250360e 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -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 }}