2022-08-02 01:20:04 -04:00
|
|
|
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
|
2022-12-17 14:54:05 -05:00
|
|
|
cache: yarn
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
2023-06-08 23:42:19 -04:00
|
|
|
run: |
|
|
|
|
yarn set version stable
|
|
|
|
yarn install --immutable
|
2022-08-02 01:20:04 -04:00
|
|
|
|
|
|
|
- name: Bump Version
|
|
|
|
env:
|
|
|
|
VSCE_PAT: ${{ secrets.VSCE_PAT }}
|
|
|
|
run: |
|
2022-08-02 01:24:23 -04:00
|
|
|
git config --global user.name "OpenGOALBot"
|
|
|
|
git config --global user.email "OpenGOALBot@users.noreply.github.com"
|
2022-12-17 14:54:05 -05:00
|
|
|
yarn vsce package
|
|
|
|
yarn vsce publish ${{ github.event.inputs.bump }}
|
2022-08-02 01:24:23 -04:00
|
|
|
git push
|
2022-08-03 23:23:39 -04:00
|
|
|
git push origin $(git tag --points-at HEAD)
|
2022-08-02 01:20:04 -04:00
|
|
|
|
|
|
|
- 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
|