-
Notifications
You must be signed in to change notification settings - Fork 11
41 lines (35 loc) · 1.06 KB
/
Copy pathrelease.yml
File metadata and controls
41 lines (35 loc) · 1.06 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
name: release
on:
push:
branches: [main]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
- name: Checkout
uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- name: Configure Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: yarn install --frozen-lockfile
- name: Configure Git
if: ${{ steps.release.outputs.release_created }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- name: Publish
if: ${{ steps.release.outputs.release_created }}
run: yarn release
env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}