Prepare a new npm release #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Prepare a new npm release | |
on: | |
workflow_dispatch: | |
inputs: | |
# This is copied from npm-publish/action.yml | |
npm-version-type: | |
description: 'The npm version type we are publishing.' | |
required: true | |
type: choice | |
default: 'patch' | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
publish: | |
name: Prepare a new npm release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Run npm-prepare-release | |
uses: Automattic/vip-actions/npm-prepare-release@v0.6.0 | |
with: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
npm-version-type: ${{ inputs.npm-version-type }} | |
conventional-commits: 'true' |