File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 - main
1010
1111jobs :
12- publish :
13- if : ${{ github.event.workflow_run.conclusion == 'success' }}
12+ release :
1413 runs-on : ubuntu-latest
1514 permissions :
1615 contents : write
@@ -30,14 +29,26 @@ jobs:
3029 node-version : " 24"
3130 cache : " npm"
3231
32+ - name : Install npm 11 (required for OIDC)
33+ run : |
34+ corepack disable
35+ npm i -g npm@11
36+ echo "npm version: $(npm -v)"
37+
3338 - name : Install dependencies
3439 run : npm ci
3540
36- - name : Build the project
41+ - name : Build
3742 run : npm run build
3843
44+ - name : Remove GitHub-injected npmrc (breaks OIDC)
45+ run : |
46+ rm -f ~/.npmrc
47+ rm -f /home/runner/work/_temp/.npmrc || true
48+
3949 - name : Release
4050 env :
4151 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4252 NPM_CONFIG_PROVENANCE : true
53+ NPM_CONFIG_AUTH_TYPE : oidc
4354 run : npx semantic-release
You can’t perform that action at this time.
0 commit comments