File tree Expand file tree Collapse file tree 1 file changed +12
-18
lines changed
Expand file tree Collapse file tree 1 file changed +12
-18
lines changed Original file line number Diff line number Diff line change 77 release :
88 types : [created]
99
10- jobs :
11- build :
12- runs-on : ubuntu-latest
13- steps :
14- - uses : actions/checkout@v3
15- - uses : actions/setup-node@v3
16- with :
17- node-version : 18.x
18- - run : npm ci
19- - run : npm test
20- - run : npm run build-test-types
10+ # https://docs.npmjs.com/trusted-publishers
11+ permissions :
12+ id-token : write
13+ contents : read
2114
15+ jobs :
2216 publish-npm :
23- needs : build
2417 runs-on : ubuntu-latest
2518 steps :
26- - uses : actions/checkout@v3
27- - uses : actions/setup-node@v3
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-node@v4
2821 with :
29- node-version : 18.x
30- registry-url : https://registry.npmjs.org/
22+ node-version : ' 20'
23+ registry-url : ' https://registry.npmjs.org/'
24+ - name : Update npm
25+ run : npm install -g npm@latest
3126 - run : npm ci
3227 - run : npm run build
3328 - run : npm run build-types
29+ - run : npm test
3430 - run : npm publish
35- env :
36- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments