Skip to content

Commit 28a7294

Browse files
authored
Merge pull request #256 from BluEye-Robotics/chore/npm-use-trusted-publisher
Use trusted publisher for npm workflow
2 parents 66350af + 581d7fa commit 28a7294

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/ci-typescript.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
compile:
1014
runs-on: ubuntu-latest
1115

1216
steps:
1317
- name: Checkout source
14-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1519

1620
- name: Install pnpm
17-
uses: pnpm/action-setup@v4
21+
uses: pnpm/action-setup@v5
1822
with:
1923
version: 10
2024
run_install: false
2125

2226
- name: Setup Node.js
23-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
2428
with:
25-
node-version: "latest"
29+
node-version: "24"
2630
cache: "pnpm"
27-
registry-url: "https://registry.npmjs.org/"
28-
scope: "@blueyerobotics"
31+
cache-dependency-path: pnpm-lock.yaml
2932

3033
- name: Install dependencies
3134
run: |
@@ -54,5 +57,3 @@ jobs:
5457
SHORT_SHA=${GITHUB_SHA::8}
5558
pnpm version --no-git-tag-version "${VERSION}-${SHORT_SHA}"
5659
pnpm publish --no-git-checks --access public --tag latest
57-
env:
58-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)