Skip to content

Commit

Permalink
Add github workflow for creating new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenAR committed Jun 11, 2024
1 parent 147dd47 commit 57c8000
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
workflow_dispatch:
inputs:
version:
type: choice
description: 'Version to bump'
required: true
options:
- 'patch'
- 'minor'
- 'major'
tag:
type: choice
description: 'Tag'
required: true
options:
- 'alpha'
- 'beta'
- 'latest'

jobs:
release:
name: Release new version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm version ${{ inputs.version }}

0 comments on commit 57c8000

Please sign in to comment.