Skip to content

Commit

Permalink
allow custom tags and next version release closing (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
esterlus authored Oct 22, 2024
1 parent 8728325 commit e9951f2
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ on:
workflow_dispatch:
inputs:
release_type:
description: 'Next version type'
description: 'Next version type: [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]'
required: true
type: choice
type: string
default: 'patch'
release_tag:
description: 'NPM release tag'
required: true
type: choice
default: 'latest'
options:
- patch
- minor
- major
- latest
- beta

concurrency:
group: release
Expand Down Expand Up @@ -104,7 +108,7 @@ jobs:
- name: Publish to Google Artifact Registry
if: steps.unpublish.outputs.already_released != 'true'
run: yarn publish --tag latest
run: yarn publish --tag ${{ inputs.release_tag }}
env:
NODE_AUTH_TOKEN: ${{ steps.gcp.outputs.access_token }}

Expand All @@ -118,7 +122,7 @@ jobs:

- name: Publish to npm
run: |
yarn publish --no-git-tag-version --tag latest
yarn publish --no-git-tag-version --tag ${{ inputs.release_tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit e9951f2

Please sign in to comment.