Skip to content

Commit 2dc8318

Browse files
authored
fix: typescript publishing ci npm version and permissions (#163)
1 parent 859345a commit 2dc8318

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/typescript-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
types: [published]
1212

1313
permissions:
14+
id-token: write # Required for OIDC
1415
contents: read
1516

1617
jobs:
@@ -21,10 +22,6 @@ jobs:
2122
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/ts-v')) ||
2223
(github.event_name == 'release' && startsWith(github.event.release.tag_name, 'ts-v'))
2324
24-
permissions:
25-
contents: read
26-
id-token: write # Required for NPM provenance
27-
2825
steps:
2926
- uses: actions/checkout@v4
3027

@@ -34,6 +31,10 @@ jobs:
3431
registry-url: "https://registry.npmjs.org"
3532
scope: "@i7m"
3633

34+
- name: Update npm
35+
# Ensure npm 11.5.1 or later for trusted publishing
36+
run: npm install -g npm@latest
37+
3738
- name: Install dependencies and build
3839
working-directory: ./instagram-ts
3940
run: npm ci && npm run build

0 commit comments

Comments
 (0)