-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (50 loc) · 1.39 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
46
47
48
49
50
name: Release
on:
push:
branches:
- master
jobs:
# dx-scanner:
# runs-on: ubuntu-latest
# container: dxheroes/dx-scanner:latest
# steps:
# - uses: actions/checkout@v1
# - name: Runs DX Scanner on the code
# env:
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# DXSCANNER_API_TOKEN: ${{ secrets.DXSCANNER_API_TOKEN }}
# run: dx-scanner run --ci
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Set vars
id: vars
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test
- name: Build project
run: yarn build
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy storybook to Github Pages
run: npm run deploy-storybook -- --ci
# 🤷
env:
GH_TOKEN: ${{github.actor}}:${{ secrets.GITHUB_TOKEN }}