Skip to content

Commit f4f9a08

Browse files
committed
fix: update changesets to publish with NPM OIDC
1 parent df67b07 commit f4f9a08

File tree

15 files changed

+136
-43
lines changed

15 files changed

+136
-43
lines changed

.github/workflows/changesets.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
version:
1111
timeout-minutes: 15
1212
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write # Required for OIDC publishing
15+
contents: write # Required for changesets to push version commit
16+
pull-requests: write # Required for changesets to create PRs
1317
steps:
1418
- name: Checkout code repository
1519
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -19,7 +23,11 @@ jobs:
1923
- name: Setup node.js
2024
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2125
with:
22-
node-version: 22
26+
node-version: 24
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install latest npm
30+
run: npm install -g npm@latest
2331

2432
- name: Install dependencies
2533
run: npm install --ignore-scripts
@@ -36,4 +44,5 @@ jobs:
3644
publish: npm run ci:publish
3745
env:
3846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NPM_TOKEN: ""
48+
NPM_CONFIG_PROVENANCE: true

workspaces/conformance/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@
1616
"test": "c8 -r html npm run test-only && npm run test-types",
1717
"spdx:refresh": "node ./scripts/fetchSpdxLicenses.js"
1818
},
19+
"publishConfig": {
20+
"registry": "https://registry.npmjs.org",
21+
"access": "public",
22+
"provenance": true
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "https://github.com/NodeSecure/scanner",
27+
"directory": "workspaces/conformance"
28+
},
1929
"files": [
2030
"dist"
2131
],
@@ -26,10 +36,6 @@
2636
],
2737
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
2838
"license": "MIT",
29-
"repository": {
30-
"type": "git",
31-
"url": "git+https://github.com/NodeSecure/scanner.git"
32-
},
3339
"bugs": {
3440
"url": "https://github.com/NodeSecure/scanner/issues"
3541
},

workspaces/contact/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
"test-types": "npm run build && tsd && attw --pack . --profile esm-only",
1616
"test": "c8 -r html npm run test-only && npm run test-types"
1717
},
18+
"publishConfig": {
19+
"registry": "https://registry.npmjs.org",
20+
"access": "public",
21+
"provenance": true
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/NodeSecure/scanner",
26+
"directory": "workspaces/contact"
27+
},
1828
"files": [
1929
"dist"
2030
],
@@ -25,10 +35,6 @@
2535
],
2636
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
2737
"license": "MIT",
28-
"repository": {
29-
"type": "git",
30-
"url": "git+https://github.com/NodeSecure/scanner.git"
31-
},
3238
"bugs": {
3339
"url": "https://github.com/NodeSecure/scanner/issues"
3440
},

workspaces/flags/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
"test": "c8 -r html npm run test-only && npm run test-types",
1111
"generateFlags": "node scripts/generateFlags.ts"
1212
},
13+
"publishConfig": {
14+
"registry": "https://registry.npmjs.org",
15+
"access": "public",
16+
"provenance": true
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/NodeSecure/scanner",
21+
"directory": "workspaces/flags"
22+
},
1323
"keywords": [
1424
"nodesecure",
1525
"flags",
@@ -34,10 +44,6 @@
3444
"dist"
3545
],
3646
"license": "MIT",
37-
"repository": {
38-
"type": "git",
39-
"url": "git+https://github.com/NodeSecure/scanner.git"
40-
},
4147
"bugs": {
4248
"url": "https://github.com/NodeSecure/scanner/issues"
4349
},

workspaces/fs-walk/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
"test-types": "attw --pack . --profile esm-only",
1616
"test": "c8 -r html npm run test-only && npm run test-types"
1717
},
18+
"publishConfig": {
19+
"registry": "https://registry.npmjs.org",
20+
"access": "public",
21+
"provenance": true
22+
},
1823
"repository": {
1924
"type": "git",
20-
"url": "git+https://github.com/NodeSecure/scanner.git"
25+
"url": "https://github.com/NodeSecure/scanner",
26+
"directory": "workspaces/fs-walk"
2127
},
2228
"bugs": {
2329
"url": "https://github.com/NodeSecure/scanner/issues"

workspaces/github/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"test-types": "attw --pack . --profile esm-only",
1313
"test": "c8 -r html npm run test-only && npm run test-types"
1414
},
15+
"publishConfig": {
16+
"registry": "https://registry.npmjs.org",
17+
"access": "public",
18+
"provenance": true
19+
},
1520
"repository": {
1621
"type": "git",
17-
"url": "git+https://github.com/NodeSecure/scanner.git"
22+
"url": "https://github.com/NodeSecure/scanner",
23+
"directory": "workspaces/github"
1824
},
1925
"keywords": [
2026
"NodeSecure",

workspaces/gitlab/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
"test-types": "attw --pack . --profile esm-only",
1313
"test": "c8 -r html npm run test-only && npm run test-types"
1414
},
15+
"publishConfig": {
16+
"registry": "https://registry.npmjs.org",
17+
"access": "public",
18+
"provenance": true
19+
},
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/NodeSecure/scanner",
23+
"directory": "workspaces/gitlab"
24+
},
1525
"keywords": [
1626
"NodeSecure",
1727
"gitlab"
@@ -21,10 +31,6 @@
2131
],
2232
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
2333
"license": "MIT",
24-
"repository": {
25-
"type": "git",
26-
"url": "git+https://github.com/NodeSecure/scanner.git"
27-
},
2834
"bugs": {
2935
"url": "https://github.com/NodeSecure/scanner/issues"
3036
},

workspaces/i18n/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
"test": "c8 -r html npm run test-only && npm run test-types",
1313
"build:documentation": "node ./scripts/buildDocumentation.ts"
1414
},
15+
"publishConfig": {
16+
"registry": "https://registry.npmjs.org",
17+
"access": "public",
18+
"provenance": true
19+
},
1520
"repository": {
1621
"type": "git",
17-
"url": "git+https://github.com/NodeSecure/scanner.git"
22+
"url": "https://github.com/NodeSecure/scanner",
23+
"directory": "workspaces/i18n"
1824
},
1925
"keywords": [
2026
"i18n",

workspaces/mama/package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
"test-types": "npm run build && tsd && attw --pack . --profile esm-only",
1313
"test": "c8 -r html npm run test-only && npm run test-types"
1414
},
15+
"publishConfig": {
16+
"registry": "https://registry.npmjs.org",
17+
"access": "public",
18+
"provenance": true
19+
},
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/NodeSecure/scanner",
23+
"directory": "workspaces/mama"
24+
},
1525
"files": [
1626
"dist"
1727
],
@@ -23,10 +33,6 @@
2333
],
2434
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
2535
"license": "MIT",
26-
"repository": {
27-
"type": "git",
28-
"url": "git+https://github.com/NodeSecure/scanner.git"
29-
},
3036
"bugs": {
3137
"url": "https://github.com/NodeSecure/scanner/issues"
3238
},

workspaces/npm-types/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77
"files": [
88
"src"
99
],
10+
"publishConfig": {
11+
"registry": "https://registry.npmjs.org",
12+
"access": "public",
13+
"provenance": true
14+
},
1015
"repository": {
1116
"type": "git",
12-
"url": "git+https://github.com/NodeSecure/scanner.git"
17+
"url": "https://github.com/NodeSecure/scanner",
18+
"directory": "workspaces/npm-types"
1319
},
1420
"keywords": [
1521
"npm registry",

0 commit comments

Comments
 (0)