File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ name: Node.js Package
6
6
on :
7
7
release :
8
8
types : [created]
9
+ pull_request :
10
+ branches : [ "master" ]
9
11
10
12
jobs :
11
13
build :
17
19
node-version : 16
18
20
- run : npm ci
19
21
- run : npm test
22
+ - run : npm run build
23
+ - run : npm run build-cjs
24
+ - run : npm run build-esm
25
+ - name : Upload build artifacts
26
+ uses : actions/upload-artifact@v3
27
+ with :
28
+ name : build-artifacts
29
+ path : ./lib
30
+
20
31
21
32
publish-npm :
22
33
needs : build
27
38
with :
28
39
node-version : 16
29
40
registry-url : https://registry.npmjs.org/
41
+ - name : Download build artifacts
42
+ uses : actions/download-artifact@v3
43
+ with :
44
+ name : build-artifacts
30
45
- run : npm ci
31
- - run : npm run build
32
46
- run : npm publish
33
47
env :
34
48
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments