forked from asispts/neo-git-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 870 Bytes
/
Copy pathrelease.yml
File metadata and controls
39 lines (31 loc) · 870 Bytes
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
name: Release VSIX
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Verify
run: pnpm run package && pnpm run test
- name: Package VSIX
run: pnpm dlx @vscode/vsce package --no-dependencies --out git-fleet-${{ github.ref_name }}.vsix
- name: Publish GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: >-
gh release create "$GITHUB_REF_NAME"
"git-fleet-${GITHUB_REF_NAME}.vsix"
--generate-notes
--title "Git Fleet ${GITHUB_REF_NAME}"