Skip to content

Commit b56bbf8

Browse files
committed
CI: fix CD
1 parent a63524b commit b56bbf8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/cd.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
version: 6.24.3
1717
- uses: actions/setup-node@v2
1818
with:
19-
node-version: "14.x"
19+
node-version: 16
2020
cache: pnpm
2121

2222
- name: install deps
@@ -36,16 +36,21 @@ jobs:
3636
needs: build
3737

3838
steps:
39-
- uses: actions/checkout@v2
39+
- name: Checkout Repo
40+
uses: actions/checkout@v2
41+
- uses: actions/setup-node@v2
42+
with:
43+
node-version: 16
44+
registry-url: "https://registry.npmjs.org"
4045

4146
- uses: actions/download-artifact@v2
4247
with:
4348
name: dist
44-
path: "."
49+
path: dist
4550

4651
- name: publish to NPM
47-
# Don't fail if version already exists
48-
run: pnpm publish --access public || echo "Version already published" && exit 0
52+
working-directory: dist
53+
run: npm publish --access public
4954
env:
5055
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5156

@@ -74,7 +79,7 @@ jobs:
7479
version: 6.24.3
7580
- uses: actions/setup-node@v2
7681
with:
77-
node-version: ${{ matrix.node }}
82+
node-version: 16
7883
cache: pnpm
7984

8085
- name: install deps

0 commit comments

Comments
 (0)