Skip to content

Commit 86652f1

Browse files
authored
Change npm deploy to OIDC
1 parent 386c471 commit 86652f1

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
deploy:
1014
runs-on: ubuntu-latest
@@ -24,17 +28,16 @@ jobs:
2428
registry-url: https://registry.npmjs.org/
2529
cache: "pnpm"
2630

27-
- run: |
31+
- name: Configure for pushing git tags
32+
run: |
2833
git config --local user.email "kenneth.skovhus@gmail.com"
2934
git config --local user.name "skovhus"
30-
name: Configure for pushing git tags
3135
32-
- run: bash scripts/release-server.sh
33-
name: Deploy server
34-
env:
35-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
- name: Deploy server
37+
run: bash scripts/release-server.sh
38+
3639

37-
- run: bash scripts/release-client.sh
38-
name: Deploy VS Code extension
40+
- name: Deploy VS Code extension
41+
run: bash scripts/release-client.sh
3942
env:
4043
VSCE_TOKEN: ${{ secrets.VSCE_PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)