File tree 1 file changed +15
-6
lines changed
1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -3,21 +3,30 @@ name: Publish to NPM
3
3
on :
4
4
release :
5
5
types : [created]
6
+ workflow_dispatch :
6
7
7
8
permissions :
8
9
contents : read
9
10
10
11
jobs :
11
- publish-npm :
12
+ test :
12
13
runs-on : ubuntu-latest
13
14
steps :
14
- - uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
15
- - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
15
+ - uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
16
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
16
17
with :
17
- node-version : 14
18
- registry-url : https://registry.npmjs.org/
18
+ node-version : 22.x
19
19
- run : npm i
20
- - run : node test/validateModuleExportsMatchCommonJS/index.js
20
+ - run : node ./test/runTests.js
21
+
22
+ publish-npm :
23
+ runs-on : ubuntu-latest
24
+ needs : test
25
+ steps :
26
+ - uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
27
+ - uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
28
+ with :
29
+ node-version : 22.x
21
30
- run : npm publish
22
31
env :
23
32
NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments