Binary releases workflow added #1
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: release | |
on: | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '.clang-format' | |
- '.gitignore' | |
- 'README.md' | |
workflow_dispatch: | |
inputs: | |
release_type: | |
type: choice | |
description: Release type | |
options: | |
- major | |
- minor | |
- patch | |
default: patch | |
jobs: | |
release: | |
runs-on: [ ubuntu-22.04 ] | |
environment: prod | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3.6.0 | |
- name: Running npm version | |
run: | | |
npm version ${{ inputs.release_type }} -m "${{ inputs.release_type }} release %s" | |
- name: Pushing commit with package.json update | |
run: | | |
git push |