diff --git a/.github/workflows/publish-cli-on-prerelease-pr.yml b/.github/workflows/publish-cli-on-prerelease-pr.yml index c11ed25..b36a0e9 100644 --- a/.github/workflows/publish-cli-on-prerelease-pr.yml +++ b/.github/workflows/publish-cli-on-prerelease-pr.yml @@ -37,6 +37,11 @@ jobs: with: script: require('./.github/versioning.js').verify({ github, context, core }) + - name: set publishing config + run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: pnpm i - run: pnpm --filter=bumpgen run build - run: pnpm --filter=bumpgen publish --tag next --access public diff --git a/.github/workflows/publish-core-on-prerelease-pr.yml b/.github/workflows/publish-core-on-prerelease-pr.yml index e698148..afac759 100644 --- a/.github/workflows/publish-core-on-prerelease-pr.yml +++ b/.github/workflows/publish-core-on-prerelease-pr.yml @@ -35,6 +35,11 @@ jobs: with: script: require('./.github/versioning.js').verify({ github, context, core }) + - name: set publishing config + run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: pnpm i - run: pnpm --filter=@repo/bumpgen-core run build - run: pnpm --filter=@repo/bumpgen-core publish --tag next --access public diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.yml index c1efe45..8b61924 100644 --- a/tooling/github/setup/action.yml +++ b/tooling/github/setup/action.yml @@ -11,12 +11,6 @@ runs: registry-url: "https://registry.npmjs.org" cache: "pnpm" - - name: set publishing config - shell: bash - run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - shell: bash run: pnpm add -g turbo