Skip to content

Commit f568e7c

Browse files
committed
dry run bindings' publish step
1 parent 9cc1f60 commit f568e7c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/node-js-packaging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
if-no-files-found: error
124124
build-freebsd:
125125
runs-on: ubuntu-latest
126-
name: Build fFreeBSD
126+
name: Build FreeBSD
127127
steps:
128128
- uses: actions/checkout@v5
129129
- name: Build
@@ -286,7 +286,6 @@ jobs:
286286
run: yarn test
287287
publish:
288288
name: Publish
289-
if: startsWith(github.ref, 'refs/tags/')
290289
runs-on: ubuntu-latest
291290
needs:
292291
- build-freebsd
@@ -315,6 +314,7 @@ jobs:
315314
working-directory: bindings/node
316315
shell: bash
317316
- name: Publish
317+
if: startsWith(github.ref, 'refs/tags/')
318318
working-directory: bindings/node
319319
run: |
320320
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

.github/workflows/python-packaging.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ jobs:
174174
release:
175175
name: Release
176176
runs-on: ubuntu-latest
177-
if: startsWith(github.ref, 'refs/tags/')
178177
needs: [linux, windows, macos, sdist]
179178
permissions:
180179
id-token: write
@@ -184,7 +183,14 @@ jobs:
184183
pattern: wheels-*
185184
path: dist
186185
merge-multiple: true
186+
- name: Install uv
187+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
188+
uses: astral-sh/setup-uv@v6
189+
- name: Check distributions
190+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
191+
run: uvx twine check dist/*
187192
- name: Publish to PyPI
193+
if: startsWith(github.ref, 'refs/tags/')
188194
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
189195
with:
190196
attestations: true

0 commit comments

Comments
 (0)