Skip to content

Commit bb4d293

Browse files
committed
Fixes for releasing the npm package
1 parent 941c0f4 commit bb4d293

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ jobs:
138138
environment: ${{ startsWith(github.ref, 'refs/tags/v') && 'deployments' || '' }}
139139
permissions:
140140
id-token: write # only used for npm publishing
141-
actions: read
141+
actions: read # we need to copy this sadly
142142
contents: write
143-
runs-on: buildjet-2vcpu-ubuntu-2204
143+
runs-on: ${{ startsWith(github.ref, 'refs/tags/v') && 'ubuntu-latest' || 'buildjet-2vcpu-ubuntu-2204' }}
144144
steps:
145145
- uses: actions/checkout@v6
146146
- uses: actions/setup-java@v5
@@ -237,4 +237,6 @@ jobs:
237237
- name: publish to NPM
238238
if: startsWith(github.ref, 'refs/tags/v')
239239
working-directory: rascal-vscode-extension
240-
run: npm publish --provenance --access=public
240+
run: |
241+
npm install -g [email protected] # we need to use a newer version of npm due to oidc support
242+
npm publish --provenance --access=public

0 commit comments

Comments
 (0)