Skip to content

Commit 176b47a

Browse files
committed
chore(ci): switch to use OIDC (trusted publisher)
1 parent 1706246 commit 176b47a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release-pkg.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
registry-url: 'https://registry.npmjs.org'
4040
cache: pnpm
4141

42+
# npm 11.5.1 or later is required so update to latest to use OIDC trusted publisher
43+
# https://github.com/eslint/config-inspector/pull/174/files
44+
# https://github.com/e18e/ecosystem-issues/issues/201
45+
- name: Update npm to latest for Trusted Publisher (OIDC)
46+
run: npm install -g npm@latest
47+
4248
- name: Install dependencies
4349
run: pnpm install --frozen-lockfile
4450

@@ -51,7 +57,3 @@ jobs:
5157

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

0 commit comments

Comments
 (0)