Skip to content

Commit

Permalink
Release workflow inited.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaskov committed Aug 16, 2023
1 parent b06b012 commit dfcb33f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.ref }}
tags: true

0 comments on commit dfcb33f

Please sign in to comment.