Skip to content

Commit 0806b2e

Browse files
authored
chore: Fix release (#505)
1 parent 29f49e3 commit 0806b2e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
permissions:
6363
contents: read
6464
issues: write
65+
id-token: write # required for provenance
6566
steps:
6667
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
6768
with:
@@ -76,10 +77,9 @@ jobs:
7677
continue-on-error: true
7778
- name: Publish to npm with provenance
7879
env:
79-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
80-
run: |
81-
cd dist/js
82-
npm publish --provenance --access public --tag latest
80+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
NPM_CONFIG_PROVENANCE: true
82+
run: npx -p publib@latest publib-npm
8383
- name: Extract Version
8484
id: extract-version
8585
if: ${{ failure() }}
@@ -175,7 +175,9 @@ jobs:
175175
env:
176176
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
177177
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
178-
run: twine upload dist/*
178+
run: |
179+
pip install twine
180+
twine upload dist/python/*.whl dist/python/*.tar.gz
179181
- name: Extract Version
180182
id: extract-version
181183
if: ${{ failure() }}
@@ -315,6 +317,7 @@ jobs:
315317
labels: failed-release
316318
title: Publishing v${{ steps.extract-version.outputs.VERSION }} to GitHub Releases failed
317319
body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
320+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
318321
- name: Generate PURL and SBOM
319322
run: |
320323
./scripts/compliance/gen-purls.sh
@@ -328,7 +331,7 @@ jobs:
328331
SILKBOMB_IMG: ${{ vars.SILKBOMB_IMG }}
329332
KONDUKTO_REPO: ${{ vars.KONDUKTO_REPO }}
330333
KONDUKTO_BRANCH_PREFIX: ${{ vars.KONDUKTO_BRANCH_PREFIX }}
331-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
334+
332335
- name: Generate SSDLC report
333336
run: |
334337
AUTHOR="${{ github.actor }}"

0 commit comments

Comments
 (0)