Skip to content

Commit

Permalink
Debug double darwin publish (#106)
Browse files Browse the repository at this point in the history
Add some debuginfo to the publish pipeline to avoid the double-publish
issue

---------

Co-authored-by: Max Huang-Hobbs <[email protected]>
  • Loading branch information
Adjective-Object and Max Huang-Hobbs authored Dec 3, 2024
1 parent 599271a commit 7e2c5ad
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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"
Expand All @@ -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:
Expand Down
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"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"aarch64-apple-darwin",
"aarch64-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"x86_64-unknown-linux-gnu"
Expand Down

0 comments on commit 7e2c5ad

Please sign in to comment.