forked from mattrglobal/node-bbs-signatures
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.02 KB
/
push-master.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
name: push-master
on:
push:
branches:
- master
jobs:
build_test_publish:
name: Build, test, and publish unstable release
if: "contains(github.event.head_commit.message, 'chore(release): publish')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
- run: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test --coverage
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc 2> /dev/null
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- run: git config user.name "Mattr CI"
- run: git config user.email "[email protected]"
- run: yarn publish:unstable:ts
- name: Report Coverage
uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192 # [email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}