Skip to content

Commit

Permalink
feat: generating provenance statements (#3186)
Browse files Browse the repository at this point in the history
* feat: Generating provenance statements

* Update publish-npm.sh

* feat: generating provenance statements

* Update release.yml

* Update 03-publish-packages.yml

* Revert "Update 03-publish-packages.yml"

This reverts commit a3b445a.

* Revert "Update release.yml"

This reverts commit 05c8e36.

* chore: update permission for publish-packages

* fix: issue with permission for 03-publish-packages.yml

---------

Co-authored-by: Nicolas Merget <[email protected]>
Co-authored-by: Nicolas Merget <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent f24fad6 commit f96d9ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ for REGISTRY in 'GITHUB' 'NPM'; do
# TODO: Add other build as well
for PACKAGE in 'foundations' 'components' 'ngx-components' 'react-components' 'v-components' 'web-components'; do
echo "⤴ Publish $PACKAGE with tag $TAG to $REGISTRY"
npm publish --tag "$TAG" db-ui-"$PACKAGE"-"$VALID_SEMVER_VERSION".tgz
# https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow
npm publish --tag "$TAG" db-ui-"$PACKAGE"-"$VALID_SEMVER_VERSION".tgz --provenance
done
done
3 changes: 3 additions & 0 deletions .github/workflows/03-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
publish:
name: Publish latest package versions to GitHub Packages
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
Expand Down

0 comments on commit f96d9ef

Please sign in to comment.