We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc2f2d4 commit f80ba48Copy full SHA for f80ba48
1 file changed
.github/workflows/npmPublish.yml
@@ -76,6 +76,13 @@ jobs:
76
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
77
- 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")
85
+
86
ctc-open:
87
needs: [check-publish]
88
if: inputs.ctc && needs.check-publish.outputs.published == 'false'
0 commit comments