-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.13 KB
/
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
name: release
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3
- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: npm ci
- name: Publish
if: ${{ steps.release.outputs.release_created }}
run: npm run release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
# Compose the next package version from the release action outputs.
# See: https://github.com/google-github-actions/release-please-action#outputs
NEXT_VERSION: '${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}'