File tree Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Expand file tree Collapse file tree 1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,44 @@ jobs:
1010 uses : " ./.github/workflows/ci.yml"
1111
1212 publish :
13- name : Publish to npm
13+ name : Publish
1414 runs-on : ubuntu-latest
1515 needs : build
1616 steps :
17- - uses : actions/checkout@v4
17+ - name : Checkout repository
18+ uses : actions/checkout@v4
1819 with :
1920 submodules : true
2021 fetch-depth : 0
21- - uses : actions/setup-node@v4
22+
23+ - name : Setup Node
24+ uses : actions/setup-node@v4
2225 with :
2326 node-version : 20
2427 registry-url : https://registry.npmjs.org
25- - uses : actions/download-artifact@v4
28+
29+ - name : Download prebuilds
30+ uses : actions/download-artifact@v4
2631 with :
2732 path : prebuilds
2833 pattern : prebuilds-*
2934 merge-multiple : true
30- - run : tree prebuilds
31- - run : npm install
32- - run : npm publish
35+
36+ - name : List prebuilds
37+ run : tree prebuilds
38+
39+ - name : Install dependencies
40+ run : npm install
41+
42+ - name : Publish to NPM
43+ run : npm publish
3344 env :
3445 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46+
47+ - name : Create release
48+ run : |-
49+ gh release create --generate-notes \
50+ ${{ github.ref_name }} \
51+ prebuilds/**/*.node
52+ env :
53+ GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments