Skip to content

Commit bec5eb5

Browse files
committed
Fix CD
1 parent 35ccb70 commit bec5eb5

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,33 @@ on:
66
- 'v*'
77

88
jobs:
9-
publish:
9+
check:
1010
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
1132
steps:
1233
- name: Checkout
1334
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
2935
- name: Publish
3036
run: |
3137
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
32-
npm publish
38+
npm publish --access public

0 commit comments

Comments
 (0)