Skip to content

Commit 4db14d7

Browse files
committed
fix: 🐛 resolve Yarn workspace:* dependencies
1 parent ee16003 commit 4db14d7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,13 @@ jobs:
9999
for pkg in packages/*/; do
100100
if [ -f "$pkg/package.json" ] && [ "$(jq -r '.private // false' "$pkg/package.json")" != "true" ]; then
101101
echo "Publishing $pkg..."
102-
(cd "$pkg" && npm publish --provenance --access public)
102+
cd "$pkg"
103+
# Use yarn pack to resolve workspace:* dependencies
104+
yarn pack -o package.tgz
105+
# Use npm publish for OIDC provenance support
106+
npm publish package.tgz --provenance --access public
107+
rm package.tgz
108+
cd - > /dev/null
103109
fi
104110
done
105111

0 commit comments

Comments
 (0)