File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : npm publish
1+ name : Publish Package
22
33on :
4- release :
5- types : [published]
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ id-token : write # Required for OIDC
9+ contents : read
610
711jobs :
8- publish :
9- runs-on : ubuntu-latest
12+ publish :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v6
16+
17+ - uses : actions/setup-node@v6
18+ with :
19+ node-version : 14.x
20+ registry-url : ' https://registry.npmjs.org'
1021
11- steps :
12- - uses : actions/checkout@v2
13- - name : Use Node.js 14.x
14- uses : actions/setup-node@v4.4.0
15- with :
16- node-version : 14.x
17- cache : ' npm'
18- registry-url : ' https://registry.npmjs.org'
19- - run : npm ci
20- - run : npm run build
21- - run : npm publish
22- env :
23- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
22+ # Ensure npm 11.5.1 or later is installed
23+ - name : Update npm
24+ run : npm install -g npm@latest
25+ - run : npm ci
26+ - run : npm run build --if-present
27+ - run : npm publish
You can’t perform that action at this time.
0 commit comments