Skip to content

Create new version

Create new version #5

Workflow file for this run

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'