Skip to content

Binary releases workflow added #8

Binary releases workflow added

Binary releases workflow added #8

Workflow file for this run

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/[email protected]
- name: Set git user
run: |
set -eox pipefail
git config --global user.name 'github.event.pull_request.user.login'
git config --global user.email 'github.event.pull_request.user.email'
- name: Update npm version in package.json
run: |
npm version patch -m "${{ inputs.release_type }} release %s"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
tags: true