Skip to content

Commit f52c95c

Browse files
authored
ci: Switch to trusted publishing (eslint#294)
1 parent 2bd29c4 commit f52c95c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.release-please-manifest.json @eslint/eslint-tsc
2+
.github/workflows/release-please.yml @eslint/eslint-tsc

.github/workflows/release-please.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- main
5+
56
name: release-please
67

78
jobs:
@@ -23,12 +24,14 @@ jobs:
2324
registry-url: https://registry.npmjs.org
2425
if: ${{ steps.release.outputs.release_created }}
2526

27+
# npm 11.5.1 or later is required so update to latest to be sure
28+
- name: Update npm
29+
run: npm install -g npm@latest
30+
2631
- name: Publish to npm
2732
run: |
2833
npm install
2934
npm publish --provenance
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3235
if: ${{ steps.release.outputs.release_created }}
3336

3437
- name: Publish to JSR

0 commit comments

Comments
 (0)