From 07381e32101c8964f6b9bc141724a9645028fb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 26 Feb 2023 22:17:00 +0100 Subject: [PATCH] fix ci. --- .github/workflows/tags.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 79a9d6cd..bd97bae8 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -61,7 +61,7 @@ jobs: registry-url: 'https://npm.pkg.github.com' - name: Publish package to npm.pkg.github.com - run: npm publish --registry=https://npm.pkg.github.com + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -85,7 +85,10 @@ jobs: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' + - name: Replace npm.pkg.github.com with registry.npmjs.org + run: sed -i 's/npm\.pkg\.github\.com/registry\.npmjs\.org/' package.json + - name: Publish package to registry.npmjs.org - run: npm publish --registry=https://registry.npmjs.org + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}