Skip to content

Commit aa89dab

Browse files
committed
chore: move to step
1 parent f80ba48 commit aa89dab

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/npmPublish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,11 @@ jobs:
7575
env:
7676
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7777
- run: echo "published said ${{ steps.is-published.outputs.published }}"
78-
79-
fail-if-published:
80-
needs: [check-publish]
81-
if: needs.check-publish.outputs.published == 'true'
82-
uses: actions/github-script@v7
83-
with:
84-
script: core.setFailed("The version '${{ inputs.githubTag }}' has already been published to npm")
78+
- name: Fail if published
79+
if: steps.is-published.outputs.published == 'true'
80+
uses: actions/github-script@v7
81+
with:
82+
script: core.setFailed("The version '${{ inputs.githubTag }}' has already been published to npm")
8583

8684
ctc-open:
8785
needs: [check-publish]

0 commit comments

Comments
 (0)