Skip to content

Release

Release #32

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
semverType:
description: 'Semver Type'
required: true
default: 'patch'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: General setup and install dependencies
run: |
git config --global user.name 'Release Bot'
git config --global user.email '[email protected]'
npm ci
- name: Build and update version
run: |
echo "Type: ${{ github.event.inputs.semverType }}"
npm version ${{ github.event.inputs.semverType }}
- name: Deploy and publish
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
npm run deploy
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}