Release latest version #30
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 latest version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version number (x.y.z format) | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.3.1 | |
cache: yarn | |
- run: yarn | |
- run: yarn config set npmAuthToken ${{ secrets.NODE_AUTH_TOKEN }} | |
- run: yarn @bud release --tag latest --version ${{ github.event.inputs.version }} --registry https://registry.npmjs.org | |
- run: yarn config set npmAuthToken "${NPM_AUTH_TOKEN:-fallback}" | |
- run: | | |
git config user.name "Roots Ladybud" | |
git config user.email "<>" | |
- run: git checkout -b v${{ github.event.inputs.version }} | |
- run: | | |
git commit -am "chore:none Bump @roots/bud to v${{ github.event.inputs.version }}" | |
git push -u origin v${{ github.event.inputs.version }} | |
- run: | | |
git tag v${{ github.event.inputs.version }} | |
git push --tags |