-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (64 loc) · 2 KB
/
release-master.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
name: '📦 Create New Release'
on:
push:
branches:
- master
permissions: write-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: ✅ Check for Release
runs-on: ubuntu-latest
timeout-minutes: 15
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: 🧪 Check out repository code
uses: ./.github/workflows/health-check
release:
name: 📦 Release Version
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- checks
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Git Config
run: |
git config --global user.name "github-bot"
git config --global user.email "[email protected]"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
run: |
npm ci --no-fund --no-audit --ignore-scripts
- name: Build
run: npm run build
- name: Setup NPM
run: |
npm config -L user set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_NAME: github-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: github-bot
GIT_COMMITTER_EMAIL: [email protected]
run: |
npx semantic-release