Skip to content

Commit 3c1b349

Browse files
committed
Use npm trusted publishing with OIDC for package releases
- Add id-token: write and contents: read permissions for OIDC - Update to npx npm@11.7.0 publish with --provenance flag - Update actions to v6
1 parent 3286fd9 commit 3c1b349

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- run: yarn pack
3535
- name: Publish to NPM
3636
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
37-
run: npx npm@latest publish package.tgz --provenance --access public
37+
run: npx npm@11.7.0 publish package.tgz --provenance --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
"typescript": "5.9.3",
5353
"typescript-eslint": "8.13.0"
5454
},
55-
"packageManager": "yarn@4.5.1"
55+
"packageManager": "yarn@4.12.0"
5656
}

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5532,11 +5532,11 @@ __metadata:
55325532

55335533
"typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>":
55345534
version: 5.9.3
5535-
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=cef18b"
5535+
resolution: "typescript@patch:typescript@npm%3A5.9.3#optional!builtin<compat/typescript>::version=5.9.3&hash=5786d5"
55365536
bin:
55375537
tsc: bin/tsc
55385538
tsserver: bin/tsserver
5539-
checksum: 10c0/6f7e53bf0d9702350deeb6f35e08b69cbc8b958c33e0ec77bdc0ad6a6c8e280f3959dcbfde6f5b0848bece57810696489deaaa53d75de3578ff255d168c1efbd
5539+
checksum: 10c0/ad09fdf7a756814dce65bc60c1657b40d44451346858eea230e10f2e95a289d9183b6e32e5c11e95acc0ccc214b4f36289dcad4bf1886b0adb84d711d336a430
55405540
languageName: node
55415541
linkType: hard
55425542

0 commit comments

Comments
 (0)