Compare commits
2 Commits
abacus-rea
...
abacus-rea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de4c03e6b2 | ||
|
|
834b062b2d |
27
.github/workflows/publish-abacus-react.yml
vendored
27
.github/workflows/publish-abacus-react.yml
vendored
@@ -83,7 +83,34 @@ jobs:
|
||||
LATEST_TAG=$(git tag --list "abacus-react-v*" | sort -V | tail -1)
|
||||
VERSION=${LATEST_TAG#abacus-react-v}
|
||||
echo "Publishing version: $VERSION"
|
||||
|
||||
# Set correct version in package.json
|
||||
npm version $VERSION --no-git-tag-version --allow-same-version
|
||||
|
||||
# Resolve any workspace dependencies before publishing
|
||||
# Replace "workspace:*" with actual version numbers from package.json files
|
||||
node -e "
|
||||
const fs = require('fs');
|
||||
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
|
||||
const replaceWorkspace = (deps) => {
|
||||
if (!deps) return deps;
|
||||
const result = {};
|
||||
for (const [name, version] of Object.entries(deps)) {
|
||||
if (version.startsWith('workspace:')) {
|
||||
// For now, replace with '*' since we don't have other workspace packages to reference
|
||||
result[name] = version.replace('workspace:', '');
|
||||
} else {
|
||||
result[name] = version;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
};
|
||||
pkg.dependencies = replaceWorkspace(pkg.dependencies);
|
||||
pkg.devDependencies = replaceWorkspace(pkg.devDependencies);
|
||||
pkg.peerDependencies = replaceWorkspace(pkg.peerDependencies);
|
||||
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2));
|
||||
"
|
||||
|
||||
npm publish
|
||||
else
|
||||
echo "No new abacus-react version tag found, skipping publish"
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
## [1.1.1](https://github.com/antialias/soroban-abacus-flashcards/compare/abacus-react-v1.1.0...abacus-react-v1.1.1) (2025-09-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **abacus-react:** resolve workspace dependencies before npm publish ([834b062](https://github.com/antialias/soroban-abacus-flashcards/commit/834b062b2d22356b9d96bb9c3c444eccaa51d793))
|
||||
|
||||
# [1.1.0](https://github.com/antialias/soroban-abacus-flashcards/compare/abacus-react-v1.0.0...abacus-react-v1.1.0) (2025-09-28)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user