Skip to content

Version and Release

Version and Release #5

Workflow file for this run

name: Version and Release
on:
workflow_dispatch:
inputs:
newversion:
description: 'Version'
required: true
concurrency:
group: npm-bump
cancel-in-progress: true
jobs:
version_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
- run: pnpm install
- run: pnpm test
- uses: bcomnes/npm-bump@v2
with:
git_email: github-actions@github.com
git_username: github-actions
newversion: ${{ github.event.inputs.newversion }}
push_version_commit: true
github_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}