-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (61 loc) · 1.42 KB
/
draftRelease.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
51
52
53
54
55
56
57
58
59
60
61
name: Draft Release
'on':
create:
tags:
- '*'
jobs:
check:
name: Check
strategy:
fail-fast: false
matrix:
command:
- 'npm run check:lint'
- 'npm run check:typescript'
- 'npm run check:coverage'
- 'npm run check:npm-audit'
- 'npm run check:depcheck'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: npm install
run: npm ci
- name: '${{ matrix.command }}'
uses: ./.github/action
with:
command: '${{ matrix.command }}'
create-executable:
if: true
name: Create executable
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
runs-on: '${{ matrix.os }}'
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: npm install
run: npm ci
- name: 'Create executable ${{ matrix.os }}'
uses: ./.github/action
with:
task: create-executable
draft-release:
if: true
name: Draft release
needs: create-executable
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: npm install
run: npm ci
- name: Draft release
uses: ./.github/action
with:
task: draft-release
githubToken: '${{ secrets.GITHUB_TOKEN }}'