-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (48 loc) · 1.51 KB
/
release-deploy.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
name: Release
on:
push:
branches:
- main
jobs:
build:
permissions: write-all
name: Release
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Release
uses: justincy/[email protected]
id: release
- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
- name: Setup
uses: actions/[email protected]
with:
node-version: 16
- name: Install Packages
if: ${{ steps.release.outputs.released == 'true' }}
run: npm install
- name: Lint
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run lint
- name: Test
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run test
- name: Prepublish
if: ${{ steps.release.outputs.released == 'true' }}
run: npm run vscode:prepublish
- name: Publish to VS Marketplace
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ steps.release.outputs.released == 'true' }}
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ steps.release.outputs.released == 'true' }}
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}