diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f20bf83..7e6457c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,13 +75,11 @@ jobs: with: node-version: 18.x cache: 'pnpm' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Setup .npmrc - run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc - - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -106,6 +104,8 @@ jobs: with: node-version: 18.x cache: 'pnpm' + registry-url: 'https://npm.pkg.github.com' + scope: '@snazzah' - name: Install dependencies run: pnpm install --frozen-lockfile @@ -113,9 +113,6 @@ jobs: - name: Build Package run: pnpm run build && pnpm run gpr - - name: Setup .npmrc - run: echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc - - run: pnpm publish --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}