Release Tagger #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Tagger | |
on: | |
workflow_dispatch: | |
inputs: | |
version_should_match: | |
description: 'Version should match (optional)' | |
required: false | |
jobs: | |
releaseVersion: | |
name: "Release new version" | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "Publish new version ${{ github.event.inputs.version }}" | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '22.x' | |
- name: Set git commit author | |
run: | | |
git config --global user.name "Pablo[bot]" | |
git config --global user.email "14909430+Pablo[bot]@users.noreply.github.com" | |
- name: install | |
run: 'yarn' | |
- run: | | |
export VERSION_SHOULD_MATCH=${{ github.event.inputs.version_should_match }} | |
export RELEASE_VERSION=$(node ./scripts/getDraftReleaseVersion) | |
yarn run publish-script | |
node ./scripts/publishDraftRelease | |
name: 'Publish' | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_SECRET }} |