-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some debuginfo to the publish pipeline to avoid the double-publish issue --------- Co-authored-by: Max Huang-Hobbs <[email protected]>
- Loading branch information
1 parent
599271a
commit 7e2c5ad
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,8 +60,8 @@ jobs: | |
yarn artifacts | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
node-version: "20.x" | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Check changes | ||
id: check_changes | ||
run: | | ||
|
@@ -82,6 +82,8 @@ jobs: | |
- name: Publish | ||
if: ${{ steps.check_changes.outputs.HAS_CHANGES == 'true' }} | ||
run: | | ||
set -exo pipefail | ||
git config user.email "[email protected]" | ||
git config user.name "$GITHUB_ACTOR" | ||
|
@@ -100,6 +102,9 @@ jobs: | |
# for final publish | ||
yarn prepublishOnly | ||
# show the content about to be published | ||
tree | ||
# Publish all packages | ||
yarn npm publish --tag "latest" --access public --tolerate-republish | ||
env: | ||
|
7 changes: 7 additions & 0 deletions
7
change/@good-fences-api-a4c357bf-9f28-412b-b118-d91f04f523e6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "add some debug settings to publish pipeline", | ||
"packageName": "@good-fences/api", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters