-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 940 Bytes
/
release.yaml
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
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release lib
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.15.0'
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline
- name: Prettier check, Eslint check, Typescript check
run: yarn code-quality:check
- name: Run tests
run: yarn test
- name: Generate coverage badges
run: yarn generate:coverage-badges
- name: Prepare build
run: yarn build
- name: Release to NPM
env:
GITHUB_TOKEN: ${{ secrets.GH_PUBLISHING_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release