opengoal-vscode/.github/workflows/release.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

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@v3
with:
token: ${{ secrets.BOT_PAT }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Bump Version
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
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
2022-08-03 23:23:39 -04:00
git push origin $(git tag --points-at HEAD)
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
2022-08-02 14:29:28 -04:00
run: gh release create $(git tag --points-at HEAD) --generate-notes --repo open-goal/opengoal-vscode ./*.vsix