File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,31 @@ run-name: "Publishing ${{ github.event.release.tag_name }} to npm"
4
4
5
5
on :
6
6
release :
7
- types : ["published"]
7
+ types : [ "published" ]
8
8
9
9
permissions :
10
- {}
10
+ { }
11
11
12
12
jobs :
13
13
publish-to-npm :
14
14
runs-on : " ubuntu-latest"
15
15
steps :
16
- - uses : " actions/checkout@v4"
17
- - uses : " actions/setup-node@v4"
16
+ - name : " Checkout repository"
17
+ uses : " actions/checkout@v4"
18
+
19
+ - name : " Setup Node.js"
20
+ uses : " actions/setup-node@v4"
18
21
with :
19
22
node-version-file : " package.json"
20
23
registry-url : " https://registry.npmjs.org"
21
- - run : " npm install"
22
- - run : " npm publish"
24
+
25
+ - name : " Install dependencies"
26
+ run : " npm install --ignore-scripts"
27
+
28
+ - name : " Build package"
29
+ run : " npm run build"
30
+
31
+ - name : " Publish package to npm"
32
+ run : " npm publish"
23
33
env :
24
34
NODE_AUTH_TOKEN : " ${{ secrets.NODE_AUTH_TOKEN }}"
Original file line number Diff line number Diff line change 21
21
steps :
22
22
- name : " Checkout repository"
23
23
uses : " actions/checkout@v4"
24
+
24
25
- name : " Show current workflow directory"
25
26
run : " ls -la"
27
+
26
28
- name : " Check support issues"
27
29
uses : " mrjackyliang/sponsor-gated-support@v1.0.1"
28
30
with :
You can’t perform that action at this time.
0 commit comments