-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.14 KB
/
main.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
# GitHub Actions docs
# https://help.github.com/en/articles/about-github-actions
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
name: CI
on: [push]
jobs:
build:
# Machine environment:
# https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts
# We specify the Node.js version manually below, and use versioned Chrome from Puppeteer.
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.10.0
uses: actions/setup-node@v3
with:
node-version: 18.10.0
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --no-progress
- name: Format check
run: yarn prettier:check
- name: Build Lib
run: yarn lib:build:prod
- name: Copy built README & LICENCE into dist
run: cp README.md LICENSE dist/ngx-grpc-interceptor
- name: Release
if: contains('refs/heads/master', github.ref)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release