Skip to content

Commit

Permalink
ci: added debug option to the release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Tomer Figenblat <[email protected]>
  • Loading branch information
TomerFi committed Feb 11, 2024
1 parent 22e999e commit abdb387
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
title:
description: "Release title (blank for tag)"
required: false
dry-run:
description: "Dry run mode"
required: false
default: false

jobs:
release:
Expand Down Expand Up @@ -57,6 +61,7 @@ jobs:
run: npm version ${{ steps.bump.outputs.version }} --no-git-tag-version

- name: Push new version
if: github.event.inputs.dry-run != 'true'
run: |
git add package.json package-lock.json
git commit -m "build: updated package with ${{ steps.bump.outputs.version }} [skip ci]"
Expand All @@ -74,6 +79,7 @@ jobs:
core.setOutput('value', retval)
- name: Create a release
if: github.event.inputs.dry-run != 'true'
uses: actions/github-script@v7
with:
script: |
Expand All @@ -86,6 +92,7 @@ jobs:
core.setOutput('html_url', response.data.html_url)
- name: Publish package
if: github.event.inputs.dry-run != 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access=public
Expand All @@ -102,7 +109,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: true
push: ${{ github.event.inputs.dry-run != 'true' }}
platforms: ${{ vars.PLATFORMS }}
tags: |
tomerfi/version-bumper:latest
Expand Down

0 comments on commit abdb387

Please sign in to comment.