We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b053976 + 6c579e0 commit a65f85cCopy full SHA for a65f85c
1 file changed
.github/workflows/ci.yml
@@ -110,6 +110,12 @@ jobs:
110
111
- name: Push GitHub CI Packages
112
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
113
- run: npm publish fetchclient.tgz --tag ${{ startsWith(github.ref, 'refs/tags/v') && 'latest' || 'next' }} --access public
+ run: |
114
+ package="@foundatiofx/fetchclient@${{ needs.lint.outputs.version }}"
115
+ if npm view "$package" version --registry https://npm.pkg.github.com > /dev/null 2>&1; then
116
+ echo "$package already exists in GitHub Packages; skipping publish."
117
+ else
118
+ npm publish fetchclient.tgz --tag ${{ startsWith(github.ref, 'refs/tags/v') && 'latest' || 'next' }} --access public
119
+ fi
120
env:
121
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
0 commit comments