-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (38 loc) · 867 Bytes
/
release.yml
File metadata and controls
50 lines (38 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release
on:
release:
types:
- published
jobs:
publish:
name: Publish
if: github.repository_owner == 'coajs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: Yarn
run: |
yarn
- name: Lint
run: |
yarn lint
- name: Build
run: |
yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }}
yarn build
- name: Test
run: |
yarn test
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.AEX_NPM_TOKEN }}
run: |
yarn publish dist/src
- name: Sync
run: |
sleep 5s
yarn sync