-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (50 loc) · 1.35 KB
/
publish.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
name: publish
on:
push:
tags:
- '**'
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 16
- run: npm ci
- run: npm run lint
- uses: GabrielBB/xvfb-action@master
with:
run: npm run test -- --coverage
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.os }}
parallel: true
publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 16
- run: npm ci
- run: npm run compile
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
- run: npm i -g vsce
- run: vsce publish -p ${{ secrets.PUBLISHER_TOKEN }}