We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fec5a commit 32f16efCopy full SHA for 32f16ef
.github/workflows/publish.yml
@@ -0,0 +1,25 @@
1
+name: Publish
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - '*'
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: actions/setup-node@v1
15
+ with:
16
+ node-version: '12.x'
17
+ registry-url: 'https://registry.npmjs.org'
18
+ - run: yarn install
19
+ - run: yarn run build
20
+ - run: yarn run test
21
+ env:
22
+ CI: true
23
+ - run: yarn publish
24
25
+ NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}
package.json
@@ -39,6 +39,6 @@
39
"format": "prettier --write \"**/*.js\" \"**/*.json\"",
40
"test": "jest",
41
"preversion": "yarn run test",
42
- "postversion": "git push --tags"
+ "postversion": "git push && git push --tags"
43
}
44
0 commit comments