-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 949 Bytes
/
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
CI:
# if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: 18.x
- name: restore cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules
- name: install
run: yarn --check-files --frozen-lockfile --non-interactive
- name: build
run: yarn build
- name: cache build
uses: actions/cache@v2
with:
path: dist
key: ${{ runner.os }}-dist
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}