Skip to content

🏭 New Release

🏭 New Release #46

Workflow file for this run

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