diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 5af9c97..83b9337 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -20,7 +20,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -45,8 +44,6 @@ jobs: npm version "$PRERELEASE_VERSION" --no-git-tag-version - name: Publish prerelease to npm - run: | - # Remove .npmrc to allow pure OIDC auth - rm -f ~/.npmrc - rm -f .npmrc - npm publish --provenance --tag next + run: npm publish --provenance --tag next + env: + NODE_AUTH_TOKEN: '' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4cba3da..59c537f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,7 +24,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -54,8 +53,6 @@ jobs: - name: Publish to npm if: steps.check.outputs.should_publish == 'true' - run: | - # Remove .npmrc to allow pure OIDC auth - rm -f ~/.npmrc - rm -f .npmrc - npm publish --provenance --access public + run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ''