mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Improvements to workflow automation (#597)
This commit is contained in:
parent
3bd849d677
commit
6f49a521be
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user