-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (34 loc) · 1.09 KB
/
release-please.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
name: Release
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
release-type: node
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 12
- name: ci
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Publish to Visual Studio Marketplace
if: ${{ steps.release.outputs.release_created }}
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
- name: Publish to Open VSX Registry
if: ${{ steps.release.outputs.release_created }}
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}