-
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.
don't publish src, don't forget to
napi prepublish
- Loading branch information
Max Huang-Hobbs
authored and
Max Huang-Hobbs
committed
Nov 19, 2024
1 parent
8e5bf47
commit a4aa6f1
Showing
11 changed files
with
77 additions
and
12 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 |
---|---|---|
|
@@ -63,13 +63,16 @@ jobs: | |
id: check_changes | ||
run: | | ||
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git | ||
OLD_PACKAGE_VERSION=$(node -e "console.log(require('./package.json').version)") | ||
# Generate changes from beachball, including package.json version bump | ||
if yarn beachball bump | grep "Removing change files:"; then | ||
echo "changes!" | ||
yarn beachball bump | ||
# check for changes | ||
PACKAGE_VERSION=$(node -e "console.log(require('./package.json').version)") | ||
if [ "$OLD_PACKAGE_VERSION" != "$PACKAGE_VERSION" ]; then | ||
echo "HAS_CHANGES=true" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "no changes!" | ||
echo "HAS_CHANGES=false" >> "$GITHUB_OUTPUT" | ||
fi | ||
shell: bash | ||
|
@@ -90,6 +93,10 @@ jobs: | |
git tag "v$PACKAGE_VERSION" | ||
git push origin main --tags | ||
# Required to do github releasing from napi & prep `optionalDependencies` in package.json | ||
# for final publish | ||
yarn prepublishOnly | ||
# Publish all packages | ||
yarn npm publish --tag "latest" --access public --tolerate-republish | ||
env: | ||
|
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
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"type": "git", | ||
"url": "https://github.com/Adjective-Object/good-fences-rs-core" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"type": "git", | ||
"url": "https://github.com/Adjective-Object/good-fences-rs-core" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"type": "git", | ||
"url": "https://github.com/Adjective-Object/good-fences-rs-core" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
"libc": [ | ||
"glibc" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -22,4 +22,4 @@ | |
"libc": [ | ||
"glibc" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"type": "git", | ||
"url": "https://github.com/Adjective-Object/good-fences-rs-core" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"type": "git", | ||
"url": "https://github.com/Adjective-Object/good-fences-rs-core" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -48,5 +48,9 @@ | |
"dependencies": { | ||
"commander": "^9.4.1" | ||
}, | ||
"workspaces": [ | ||
"npm/*", | ||
"." | ||
], | ||
"packageManager": "[email protected]+sha512.91d93b445d9284e7ed52931369bc89a663414e5582d00eea45c67ddc459a2582919eece27c412d6ffd1bd0793ff35399381cb229326b961798ce4f4cc60ddfdb" | ||
} | ||
} |
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