Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Dec 13, 2023
1 parent 71d70c0 commit 14f965b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/tag-exists/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
required: true
tag:
required: true
repo_owner:
required: true
repo_name:
required: true

outputs:
exists:
Expand All @@ -33,4 +37,5 @@ runs:
fi
env:
TAG_NAME: ${{ inputs.tag }}
GITHUB_REPOSITORY: ${{ inputs.repo_owner }}/${{ inputs.repo_name }}
GITHUB_TOKEN: ${{ inputs.token }}
4 changes: 4 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ jobs:
with:
tag: ${{ steps.get_version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
repo_owner: ${{ github.repository_owner }}
repo_name: ${{ github.event.repository.name }}

# If the tag already exists, exit with an error
- if: steps.tag_exists.outputs.exists == 'true'
run: exit 1

# Publish the release to our package manager
- uses: ./.github/actions/publish-package
if: false
with:
node-version: ${{ inputs.node-version }}
npm-token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -66,6 +69,7 @@ jobs:

# Create a release for the tag
- uses: ./.github/actions/release-create
if: false
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ steps.get_version.outputs.version }}
Expand Down

0 comments on commit 14f965b

Please sign in to comment.