-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (37 loc) · 1.11 KB
/
vsx-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
name: VSX Release
on:
push:
branches:
- "publish"
# - "vscode/**"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
# - uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
# support pnpm yarn npm or ''
cache: yarn
registry-url: "https://registry.npmjs.org"
- id: ShortSha
run: echo "::set-output name=value::$(git rev-parse --short HEAD)"
# - name: Install dependencies
# run: pnpm install
- name: Install dependencies
run: yarn i
# https://github.com/HaaLeo/publish-vscode-extension
- name: Build and publish vscode vsx
uses: HaaLeo/publish-vscode-extension@v1
id: PublishVSX
with:
# 如果项目不在根目录, 可以修改这里
# packagePath: ./packages/vscode
pat: ${{ secrets.VSCODE_TOKEN }}
skipDuplicate: false
registryUrl: https://marketplace.visualstudio.com
yarn: false