-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (44 loc) · 1.32 KB
/
release.yaml
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
43
44
45
46
47
48
49
50
name: 🏭 New Release
on:
workflow_dispatch:
inputs:
bump:
description: "Semver Bump Type"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
cut-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_PAT }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- name: Bump Version
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
# TODO - https://github.com/microsoft/vscode-vsce/pull/876
run: |
git config --global user.name "OpenGOALBot"
git config --global user.email "OpenGOALBot@users.noreply.github.com"
yarn vsce package
yarn vsce publish ${{ github.event.inputs.bump }}
git push
git push origin $(git tag --points-at HEAD)
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
run: |
mv ./*.vsix ./opengoal-vscode-$(git tag --points-at HEAD).vsix
gh release create $(git tag --points-at HEAD) --generate-notes --repo open-goal/opengoal-vscode ./*.vsix