Release #29
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
dry-run: | |
description: "Dry run" | |
required: true | |
type: boolean | |
default: false | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
fetch-depth: 200 | |
fetch-tags: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: New version (dry run) | |
if: github.ref == 'refs/heads/main' && inputs.dry-run | |
run: yarn yarn-version version --dry-run | |
- name: Configure Git user | |
if: github.ref == 'refs/heads/main' && !inputs.dry-run | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: New version | |
if: github.ref == 'refs/heads/main' && !inputs.dry-run | |
run: | | |
yarn yarn-version version --create-release=github -m 'chore: release %v [skip ci]' | |
env: | |
HUSKY: 0 | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false |