We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e346711 + fa10fad commit 7240f24Copy full SHA for 7240f24
.github/workflows/CD.yml
@@ -0,0 +1,30 @@
1
+name: CD workflow to NPM publish
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish-release:
9
+ if: "!github.event.release.prerelease"
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - uses: actions/setup-node@v1
14
+ with:
15
+ node-version: 14
16
+ - uses: JS-DevTools/npm-publish@v1
17
18
+ token: ${{ secrets.NPM_TOKEN }}
19
+ publish-pre-release:
20
+ if: "github.event.release.prerelease"
21
22
23
24
25
26
27
28
29
30
+ tag: ${{ github.event.release.tag_name }}
0 commit comments