-
-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (33 loc) · 959 Bytes
/
ReleaseBuilds.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
name: Release
# Controls when the workflow will run
on:
push:
tags: ["**"]
env:
CI: false #Without this, the build will fail. As Warnings in React will be treated as errors.
version: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
#Prep the codebase
- name: Variable Substitution
uses: microsoft/variable-substitution@v1
with:
files: ./package.json
- run: npm i
- run: npm install -g vsce
- run: vsce package
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./*.vsix