-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (37 loc) · 1.12 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: Release
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
run-release:
name: Run release
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Node.js dependencies
run: npm ci
- name: Package VS Code extension
id: package
uses: nhedger/package-vscode-extension@v1
- name: "Get Previous tag"
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.extract-release-notes.outputs.release_notes }}
files: ${{ steps.package.outputs.packagePath }}
tag_name: ${{ steps.previoustag.outputs.tag }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com