Skip to content

Commit

Permalink
ci(github): update publishing workflows to use github.repository_owner
Browse files Browse the repository at this point in the history
Primary Changes
----------------
1. Updated publishing workflows to use gitHub.repository_owner variable

Fixes hyperledger-cacti#3597
  • Loading branch information
adrianbatuto committed Dec 10, 2024
1 parent 09f0fcf commit a4c827c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.email "npm-ci@hyperledger.org"
git config --global user.email "npm-ci@${{ github.repository_owner }}.org"
git config --global user.name "hyperledger-ghci"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug --ignore-scripts
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

- name: Configure git user and email
run: |
git config --global user.email "npm-ci@hyperledger.org"
git config --global user.email "npm-ci@${{ github.repository_owner }}.org"
git config --global user.name "hyperledger-ghci"
# We run the publish script a second time after having reconfigured the registry to be GHCR
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.email "npm-ci@hyperledger.org"
git config --global user.email "npm-ci@${{ github.repository_owner }}.org"
git config --global user.name "hyperledger-ghci"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug

0 comments on commit a4c827c

Please sign in to comment.