We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d24eba2 commit 7a0fb4eCopy full SHA for 7a0fb4e
.github/workflows/publishPackage.yml
@@ -0,0 +1,29 @@
1
+name: Publish Node package
2
+on:
3
+ push:
4
+ tags: ["v[0-9]+.[0-9]+.[0-9]+"]
5
+jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - name: actions/checkout
10
+ uses: actions/checkout@v1.2.0
11
+ - name: actions/setup-node
12
+ uses: actions/setup-node@v1.3.0
13
+ with:
14
+ node-version: "12.13.1"
15
+ - name: npm install
16
+ uses: jaid/action-npm-install@master
17
18
+ githubToken: ${{ secrets.GITHUB_TOKEN }}
19
+ - name: Jest
20
+ uses: jaid/action-jest@master
21
22
23
+ - name: Publish
24
+ uses: jaid/action-publish@master
25
26
+ githubToken: ${{ secrets.packagesToken }}
27
+ npmPrepareScript: build:prod
28
+ publishDirectory: dist/package/production
29
+ npmToken: ${{ secrets.npmToken }}
0 commit comments