Release a new version from master #13
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: Release a new version from master | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version of the library' | |
required: true | |
confirmBranch: | |
description: 'Confirm release branch' | |
required: true | |
command: | |
description: 'Library deploy command' | |
required: false | |
default: prepare push deploy -v2 --any-branch | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v2 | |
- name: Make sure we're on master branch | |
run: | | |
[[ $GITHUB_REF == refs/heads/${{ github.event.inputs.confirmBranch }} ]] || exit 1 | |
- name: Publish the library | |
uses: wultra/library-deploy@develop | |
with: | |
script-parameters: ${{ github.event.inputs.version }} ${{ github.event.inputs.command }} | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |