-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (41 loc) · 1.35 KB
/
release.yml
File metadata and controls
52 lines (41 loc) · 1.35 KB
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
48
49
50
51
52
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4.2.0
with:
run_install: false
cache: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '>=20.18.2'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- run: pnpm exec changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package VSIX
run: pnpm exec vsce package --no-dependencies --out ./git-worktree-manager-${{ github.ref_name }}.vsix
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.ref_name }} ./git-worktree-manager-${{ github.ref_name }}.vsix
- name: Publish Extension to VSCode Marketplace
run: pnpm exec vsce publish -p ${{ secrets.VSCE_TOKEN }} --no-dependencies
- name: Publish Extension to OVSX
run: pnpm exec ovsx publish -p ${{ secrets.OVSX_TOKEN }} --no-dependencies