-
Notifications
You must be signed in to change notification settings - Fork 355
45 lines (38 loc) · 1.14 KB
/
release.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
name: "Semantic release"
concurrency:
group: semantic-release
cancel-in-progress: true
on:
push:
branches: [ master ]
jobs:
release:
if: ${{ github.event.repository.full_name == github.repository }} && {{ !contains(github.event.head_commit.message, "skip ci") }}
runs-on: ubuntu-latest
environment: test
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# Whether to configure the token or SSH key with the local git config
# Default: true
persist-credentials: false # <--- checking this in commit context
- name: "Enable yarn cache"
uses: c-hive/gha-yarn-cache@v2 # using cache
- name: "Setup node@16"
uses: actions/setup-node@v2
with:
node-version: 16
- name: "Install dependencies"
run: |
yarn set version 3.1.1
yarn install --immutable
- name: "Lint check"
run: |
yarn lint --max-warnings 0
- name: "Semantic release"
run: yarn semantic-release
env:
HUSKY: 0
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}