Skip to content

Commit 6fdf26e

Browse files
authored
Set up npm trusted publisher (#1)
1 parent 9493ad6 commit 6fdf26e

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/auto-update.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
id-token: write
1314
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-node@v6
1617
with:
17-
registry-url: 'https://registry.npmjs.org'
18+
node-version: '22'
1819
- uses: fregante/setup-git-user@v2
1920
- name: Try updating the version
2021
run: ./scripts/bump-and-publish.sh
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2322
- run: git push --follow-tags

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"octicons",
1010
"svgr"
1111
],
12-
"repository": "fregante/octicons-plain-react",
12+
"repository": "refined-github/octicons-plain-react",
1313
"license": "MIT",
1414
"author": "GitHub Inc.",
1515
"contributors": [

scripts/bump-and-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
set -e
44

55
if npm version "$(npm info @primer/octicons version)"; then
6-
npm publish
6+
npm publish --provenance
77
fi

0 commit comments

Comments
 (0)