Improvements to workflow automation (#597)

This commit is contained in:
James Ives 2021-02-10 09:12:47 -05:00 committed by GitHub
parent 3bd849d677
commit 6f49a521be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,10 @@
name: publish-to-npm
on:
release:
types: [created]
workflow_dispatch:
inputs:
version:
description: 'The updated registry version number.'
required: true
jobs:
build:
@ -28,7 +31,7 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn build
- run: npm version patch -m "Release %s 📣"
- run: npm version ${{ github.event.inputs.version }} -m "Release ${{ github.event.inputs.version }} 📣"
- run: git push
# Publish to npm