File tree Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Original file line number Diff line number Diff line change 6
6
- ' v*'
7
7
8
8
jobs :
9
- publish :
9
+ check :
10
10
runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@master
14
+ - name : Setup
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 14
18
+ - name : Cache
19
+ uses : actions/cache@v1
20
+ with :
21
+ path : node_modules
22
+ key : ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package.json') }}
23
+ restore-keys : |
24
+ ${{ runner.OS }}-npm-cache-
25
+ - name : Verify
26
+ run : |
27
+ npm i
28
+ npm run preversion
29
+ npm :
30
+ runs-on : ubuntu-latest
31
+ needs : check
11
32
steps :
12
33
- name : Checkout
13
34
uses : actions/checkout@master
14
- - name : Setup
15
- uses : actions/setup-node@v1
16
- with :
17
- node-version : 14
18
- - name : Cache
19
- uses : actions/cache@v1
20
- with :
21
- path : node_modules
22
- key : ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
23
- restore-keys : |
24
- ${{ runner.OS }}-npm-cache-
25
- - name : Verify
26
- run : |
27
- npm ci
28
- npm run preversion
29
35
- name : Publish
30
36
run : |
31
37
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
32
- npm publish
38
+ npm publish --access public
You can’t perform that action at this time.
0 commit comments