File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CD Pipeline
22
33on :
4- workflow_run :
5- workflows : ["CI Pipeline"]
6- types :
7- - completed
4+ pull_request :
85 branches :
96 - main
107
118jobs :
129 publish :
13- if : ${{ github.event.workflow_run.conclusion == 'success' }}
1410 runs-on : ubuntu-latest
1511 permissions :
1612 contents : write
2824 uses : actions/setup-node@v4
2925 with :
3026 node-version : " 24"
27+ registry-url : " https://registry.npmjs.org"
3128 cache : " npm"
3229
3330 - name : Install dependencies
3633 - name : Build the project
3734 run : npm run build
3835
36+ - name : Upgrade npm for OIDC trusted publishing
37+ run : npm i -g npm@^11.7.0
38+ - name : Debug npm
39+ run : |
40+ node -v
41+ npm -v
42+ npm config ls -l
43+ npm config get auth-type || true
44+ echo '--- .npmrc ---'
45+ test -f ~/.npmrc && sed -n '1,200p' ~/.npmrc || echo 'no ~/.npmrc'
46+
3947 - name : Release
4048 env :
4149 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2020 uses : actions/setup-node@v4
2121 with :
2222 node-version : " 24"
23+ registry-url : " https://registry.npmjs.org"
2324 cache : " npm"
2425
2526 - name : Install dependencies
You can’t perform that action at this time.
0 commit comments