-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.03 KB
/
verify-and-publish.yml
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
name: Verify and Publish
on:
push:
branches:
- master
- release
jobs:
test:
name: Test
uses: ./.github/workflows/test.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
name: Lint
uses: ./.github/workflows/lint.yml
publish:
name: Publish
needs:
- test
- lint
runs-on: ubuntu-20.04
env:
NPM_REGISTRY_URL: https://registry.npmjs.org
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION }}
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: ${{ env.NPM_REGISTRY_URL }}
- name: Install and build
run: yarn
- name: Publish
run: |
git config user.name "uno"
git config user.email "[email protected]"
yarn autopublish
env:
GH_TOKEN: ${{ secrets.GH_AUTOMATION }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}