-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (40 loc) · 1.2 KB
/
release.yaml
File metadata and controls
42 lines (40 loc) · 1.2 KB
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
name: Release
on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Install
run: yarn install --frozen-lockfile
- name: Test
env:
LAMBDA_REMOTE_DOCKER: true
run: yarn test
- name: Build
run: yarn build
- name: Coverage # Only needed if the test command doesn't already output a report, like with Jest
run: yarn coverage # the coverage command should output results to <REPO_ROOT>/.nyc_output/lcov.info
- name: Coverage Report
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: .nyc_output/lcov.info
flag-name: master
- name: Publish
env:
NPM_TOKEN: ${{ secrets.LIFEOMIC_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
yarn semantic-release