-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 926 Bytes
/
publish.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
name: "Publish: Visual Studio Marketplace"
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'package.json'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PUSH_PAT }}
- name: Set git config
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- name: Install vsce
run: npm install -g @vscode/vsce
- name: Publish
if: success()
run: "vsce publish patch -p ${{ secrets.VSCE_PAT }} -m 'build: version bump to %s'"
- name: Git Push
run: git push && git push --tags