Skip to content

Release latest version #22

Release latest version

Release latest version #22

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@v3
with:
node-version: 18.16.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: 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