Skip to content

Release latest version #27

Release latest version

Release latest version #27

Workflow file for this run

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