Skip to content

Release

Release #51

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
token: ${{ secrets.PUSH_TOKEN }}
- uses: actions/[email protected]
with:
node-version: 18
cache: yarn
- name: Set Git username
run: |-
git config --global user.name "Release"
git config --global user.email "[email protected]"
# 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 }}