-
-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (34 loc) · 944 Bytes
/
publish.yml
File metadata and controls
41 lines (34 loc) · 944 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
40
41
name: Publish Extension
on:
push:
tags:
- v*
jobs:
publish-extension:
permissions:
id-token: write
contents: write
actions: write
runs-on: ubuntu-slim
steps:
- name: Setup JS
uses: sxzz/workflows/setup-js@69098296b6f6083ed99f38e2040f2a7238580e27 # v1.4.0
with:
fetch-all: true
- name: Build
run: pnpm build
- name: Generate .vsix file
working-directory: extensions/vscode
run: pnpm package
- name: Publish Extension
working-directory: extensions/vscode
run: npx vsxpub --no-dependencies
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{secrets.VSCE_PAT}}
OVSX_PAT: ${{secrets.OVSX_PAT}}
- name: Generate Github Changelog
run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}