Skip to content

Commit 675b577

Browse files
committed
chore(ci): switch to use OIDC (trusted publisher)
1 parent 4ca713c commit 675b577

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/release-pkg.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3939
registry-url: 'https://registry.npmjs.org'
4040

41-
- uses: pnpm/action-setup@v3
42-
name: Install pnpm
43-
with:
44-
run_install: false
41+
# npm 11.5.1 or later is required so update to latest to use OIDC trusted publisher
42+
# https://github.com/eslint/config-inspector/pull/174/files
43+
# https://github.com/e18e/ecosystem-issues/issues/201
44+
- name: Update npm to latest for Trusted Publisher (OIDC)
45+
run: npm install -g npm@latest
4546

4647
- name: Install dependencies
4748
run: pnpm install --frozen-lockfile
@@ -51,9 +52,6 @@ jobs:
5152

5253
- name: Packages publish
5354
run: pnpm publish -r --access public --no-git-checks
54-
env:
55-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
56-
NPM_CONFIG_PROVENANCE: true
5755

5856
- name: Sync GitHub Release
5957
run: pnpm run changelogithub

0 commit comments

Comments
 (0)