-
Notifications
You must be signed in to change notification settings - Fork 58
70 lines (64 loc) · 1.56 KB
/
rc-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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: rc-release
on:
workflow_dispatch:
push:
tags: # only checks for -rc tags
- 'v[0-9]+.[0-9]+.[0-9]+-rc'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.4
with:
node-version: 12.x
- run: |
npm i
npm i -g vsce
- run: |
npm run compile
vsce package
test:
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
- run: npm run tslint
- run: npm run compile
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Check links with awesome_bot
run: |
gem install awesome_bot
awesome_bot --allow-dupe --allow-redirect --skip-save-results `ls *.md` --white-list gitter.im
release:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.4
with:
node-version: 12.x
- run: |
npm i
npm i -g vsce
node scripts/genAiKey.js
npm run compile
vsce package
- uses: actions/upload-artifact@v2
with:
path: '*.vsix'