Create new version #5
Workflow file for this run
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: Create new version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "Version number" | |
required: true | |
type: string | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.VERSION_TOKEN }} | |
- name: Add version to packages | |
run: npm version ${{ inputs.version }} --git-tag-version false | |
- name: Create commit and push | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: '${{ inputs.version }}' | |
add: 'package.json package-lock.json' | |
push: '' | |
- name: Create tag and push | |
uses: EndBug/add-and-commit@v9 | |
with: | |
tag: '${{ inputs.version }}' | |
force: '--force' |