-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (44 loc) · 1.48 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
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches: [ main, beta, prerelease ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions/setup-node@v2
with:
node-version: '18.19.0'
- run: yarn
- run: yarn build:setup
- run: yarn prepare-beta
if: ${{ steps.extract_branch.outputs.branch == 'beta' }}
- run: xvfb-run -a yarn test
- run: yarn run prettier:check
- run: yarn run lint
- name: Publish to Visual Studio Marketplace
if: ${{ steps.extract_branch.outputs.branch != 'prerelease' }}
uses: HaaLeo/[email protected]
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
yarn: true
- name: Publish to Visual Studio Marketplace for pre-release
if: ${{ steps.extract_branch.outputs.branch == 'prerelease' }}
uses: HaaLeo/[email protected]
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
yarn: true
preRelease: true
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
yarn: true