Skip to content

Commit

Permalink
Updated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveKeehl committed Apr 7, 2024
1 parent b07ebaf commit 8a4a57e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Get current version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
Expand All @@ -35,11 +29,11 @@ jobs:
uses: 'WyriHaximus/github-action-get-previous-tag@v1'

- name: Check for new version
if: ${{ steps.package-version.outputs.current-version }} != ${{ steps.latest-version.outputs.tag }}
if: ${{ steps.package-version.outputs.current-version == steps.latest-version.outputs.tag }}
uses: actions/github-script@v3
with:
script: |
core.setFailed('The last version and the current version are the same')
core.setFailed('The last version (${{ steps.package-version.outputs.current-version }}) and the current version (${{ steps.latest-version.outputs.tag }}) are the same')
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8a4a57e

Please sign in to comment.