File tree 1 file changed +26
-7
lines changed
1 file changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,44 @@ jobs:
10
10
uses : " ./.github/workflows/ci.yml"
11
11
12
12
publish :
13
- name : Publish to npm
13
+ name : Publish
14
14
runs-on : ubuntu-latest
15
15
needs : build
16
16
steps :
17
- - uses : actions/checkout@v4
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
18
19
with :
19
20
submodules : true
20
21
fetch-depth : 0
21
- - uses : actions/setup-node@v4
22
+
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v4
22
25
with :
23
26
node-version : 20
24
27
registry-url : https://registry.npmjs.org
25
- - uses : actions/download-artifact@v4
28
+
29
+ - name : Download prebuilds
30
+ uses : actions/download-artifact@v4
26
31
with :
27
32
path : prebuilds
28
33
pattern : prebuilds-*
29
34
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
33
44
env :
34
45
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