File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Publish package to npmjs
22
33on :
4- pull_request :
5- push :
6- branches :
7- - master
4+ release :
5+ types : [published]
86
97concurrency :
108 group : ${{ github.workflow }}-${{ github.ref }}
1412 ci :
1513 runs-on : ubuntu-latest
1614
15+ permissions :
16+ contents : read
17+ id-token : write
18+
1719 steps :
1820 - uses : actions/checkout@v4
1921
2325 - name : Use Node.js
2426 uses : actions/setup-node@v4
2527 with :
26- node-version : ' 20'
28+ node-version : ' 20.x '
2729 registry-url : ' https://registry.npmjs.org'
2830 cache : ' pnpm'
2931
3234
3335 - name : Run CI
3436 run : npm run ci
37+
38+ - run : npm publish --provenance --access public
39+ env :
40+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11.devcontainer /
2+ .vscode /
23dist /
34node_modules /
You can’t perform that action at this time.
0 commit comments