There was an error while loading. Please reload this page.
2 parents 65bbdd3 + 43b089e commit 5495296Copy full SHA for 5495296
1 file changed
.github/workflows/ci.yml
@@ -50,7 +50,7 @@ jobs:
50
github_token: ${{ secrets.GITHUB_TOKEN }}
51
publish_dir: .
52
53
- npm:
+ npm-publish-build:
54
needs: test
55
runs-on: ubuntu-latest
56
steps:
@@ -69,3 +69,18 @@ jobs:
69
with:
70
token: ${{ secrets.NPM_TOKEN }}
71
tag: ${{ env.GITHUB_REF_SLUG }}
72
+ npm-publish-latest:
73
+ needs: test
74
+ runs-on: ubuntu-latest
75
+ if: github.ref == 'refs/heads/main'
76
+ steps:
77
+ - uses: actions/download-artifact@v2
78
+ with:
79
+ name: build
80
+ - uses: actions/setup-node@v1
81
82
+ node-version: 14.x
83
+ - uses: JS-DevTools/npm-publish@v1
84
85
+ token: ${{ secrets.NPM_TOKEN }}
86
+ tag: latest
0 commit comments