File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,30 +5,10 @@ name: publish
55
66on :
77 release :
8- types : [created ]
8+ types : [published ]
99
1010jobs :
11- test :
12- name : Node ${{ matrix.node }} on ${{ matrix.os }}
13- runs-on : ubuntu-latest
14-
15- strategy :
16- matrix :
17- node : [16]
18- os : [ubuntu-latest]
19-
20- steps :
21- - uses : actions/checkout@v2
22- - name : Use Node.js ${{ matrix.node }}
23- uses : actions/setup-node@v2
24- with :
25- node-version : ${{ matrix.node }}
26- cache : ' npm'
27- - run : npm install --dev
28- - run : npm run test
29-
30- publish-npm :
31- needs : test
11+ publish :
3212 runs-on : ubuntu-latest
3313 steps :
3414 - uses : actions/checkout@v2
3818 with :
3919 node-version : 16
4020 registry-url : https://registry.npmjs.org/
41- - run : npm ci
4221 - run : git config --global user.name "Sven"
4322 - run : git config --global user.email "mailsvb@gmail.com"
4423 - run : npm version ${{ github.event.release.tag_name }}
You can’t perform that action at this time.
0 commit comments