Skip to content

Commit 32f16ef

Browse files
committed
publish
1 parent f2fec5a commit 32f16ef

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/publish.yml

+25
Original file line numberDiff line numberDiff line change
@@ -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+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"format": "prettier --write \"**/*.js\" \"**/*.json\"",
4040
"test": "jest",
4141
"preversion": "yarn run test",
42-
"postversion": "git push --tags"
42+
"postversion": "git push && git push --tags"
4343
}
4444
}

0 commit comments

Comments
 (0)