generated from antfu/starter-vscode
-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 846 Bytes
/
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
name: Build
on:
push:
tags:
- 'v*.*.*'
branches:
- main
paths-ignore:
- 'README.md'
- 'LICENSE'
permissions:
contents: write
discussions: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js and Pnpm
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'pnpm'
- name: Install Dependency
run: pnpm install
- name: Build Page
run: pnpm run package
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}