Skip to content

Bump version

Bump version #7

Workflow file for this run

name: Bump version
on:
workflow_dispatch:
inputs:
version:
description: 'Semver type of new version (major / minor / patch)'
required: true
type: choice
options:
- major
- minor
- patch
permissions:
contents: write
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- name: 🧅 Setup bun
uses: oven-sh/setup-bun@v1
- name: 📥 Download deps
run: bun install
- name: Setup Git
run: |
git config user.name 'Daniel Esteves'
git config user.email '[email protected]'
- name: bump version
run: npm version ${{ github.event.inputs.version }}
- name: Push latest version
run: git push origin main --follow-tags