Skip to content

Commit

Permalink
z
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Dec 4, 2024
1 parent dbc95be commit 209bd83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/bindings.nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ jobs:
path: bindings/nodejs/*.node

publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -141,17 +142,7 @@ jobs:
ls -lRh npm
- name: Add LICENSE
run: cp LICENSE ./bindings/nodejs
- name: Publish dry-run
if: github.event_name == 'pull_request'
working-directory: bindings/nodejs
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public --provenance --dry-run
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
working-directory: bindings/nodejs
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/bindings.python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
run: behave tests/*

publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: [check, build, integration]
runs-on: ubuntu-latest
permissions:
Expand All @@ -145,15 +146,7 @@ jobs:
path: bindings/python/artifacts
pattern: bindings-python-*
merge-multiple: true
- name: Publish package distributions to TestPyPI
if: github.event_name == 'pull_request'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: bindings/python/artifacts
repository-url: https://test.pypi.org/legacy/
- name: Publish package distributions to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
Expand Down

0 comments on commit 209bd83

Please sign in to comment.