Skip to content

Commit fb704d8

Browse files
mathiasbynensDevtools-frontend LUCI CQ
authored andcommitted
[npm] Migrate to Trusted Publishing for npm publish
https://docs.npmjs.com/trusted-publishers Bug: chromium:451910086 Change-Id: I9b07286fc302180fd61c09bbb3854e9a2b9f96ac Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7038625 Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Auto-Submit: Mathias Bynens <mathias@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent a21f53a commit fb704d8

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@ jobs:
1212
contents: read
1313
id-token: write
1414
steps:
15-
- uses: actions/checkout@v5
15+
- name: Checkout
16+
uses: actions/checkout@v5
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22'
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Update npm
23+
run: npm install -g npm@latest
1624
- name: Publish
1725
env:
18-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
1926
TAG_NAME: ${{github.ref_name}}
2027
run: |
2128
rm .npmrc
2229
npm version --no-git-tag-version $TAG_NAME
23-
npm config set registry 'https://wombat-dressing-room.appspot.com/'
24-
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
2530
npm publish --provenance --access public

0 commit comments

Comments
 (0)