Release #53
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: | |
version: | |
description: 'Version' | |
required: true | |
type: string | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
with: | |
token: ${{ secrets.PUSH_TOKEN }} | |
- uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Set Git username | |
run: |- | |
git config --global user.name "Release" | |
git config --global user.email "actions@users.noreply.github.com" | |
# See https://github.com/yarnpkg/yarn/issues/1874 | |
# https://github.com/yarnpkg/yarn/issues/3728 | |
- name: Pre-install node-gyp | |
run: |- | |
npm install -g node-gyp | |
node-gyp install | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Update word snapshot | |
run: yarn update-snapshot | |
- name: Commit and push if it changed | |
run: |- | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "chore: Update word snapshot (${timestamp})" || exit 0 | |
git push | |
- name: Create release | |
run: yarn release-it --ci -i ${{ inputs.version }} -VV | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} |