Skip to content

Commit

Permalink
Merge branch 'master' into feat/add-consensus-node
Browse files Browse the repository at this point in the history
  • Loading branch information
hejkerooo authored May 29, 2024
2 parents 3f206c5 + 2109cb0 commit 2c0dfb9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
push:
branches:
- master
workflow_dispatch:
inputs:
action:
type: choice
description: Select action to excute
options:
- Release
- Dry-run
default: Dry-run

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -35,6 +44,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_release_rules: major:major:Major Changes,minor:minor:Minor Changes,chore:patch:Chores
dry_run: ${{ github.event.inputs.action != 'Release' }}
outputs:
new_version: ${{ steps.tag_version.outputs.new_version }}

Expand Down Expand Up @@ -67,4 +77,9 @@ jobs:
- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} # Set your NPM token in repository secrets
run: npm publish --access public # Add any additional flags you need
run: |
if [[ "${{ github.event.inputs.action }}" == 'Release' ]]; then
npm publish --access public
else
npm publish --access public --dry-run
fi

0 comments on commit 2c0dfb9

Please sign in to comment.