-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (36 loc) · 1.08 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
name: release
env:
NODE_VERSION: 16.x
on:
release:
types:
- created
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install node_modules
run: yarn
- name: Run Tests
uses: GabrielBB/[email protected]
with:
run: yarn test
- name: Publish to MS Market Place
if: success() && (startsWith( github.ref, 'refs/tags/releases/') || startsWith( github.ref, 'refs/tags/v')) && matrix.os == 'ubuntu-latest'
run: yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX Market Place
if: success() && (startsWith( github.ref, 'refs/tags/releases/') || startsWith( github.ref, 'refs/tags/v')) && matrix.os == 'ubuntu-latest'
run: npx ovsx publish --pat $OVSX_PAT
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}