Skip to content

Release

Release #14

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
jobs:
Release:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }} # Needed to properly trigger workflow events
- name: Prepare
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Bump version
run: |
npm run release -- --release-as ${{ env.RELEASE_VERSION }} --no-verify --skip.changelog
- name: Push tag
run: |
git push --follow-tags origin main
- name: Create release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
tag_name: v${{ env.RELEASE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}