Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publish-dev.sh script #490

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions scripts/publish-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ npm run build
npm version --preid dev --no-git-tag-version --no-commit-hooks prepatch
#Use timestamp as package suffix
TIME=$(date -u +%Y%m%d%H%M%S)
sed -i "/version/s/dev.0/dev.$TIME/g" package.json

PACKAGE_NAME=$(cat package.json | jq -r '.name')
PUBLISH_VERSION=$(cat package.json | jq -r '.version')
echo publishing ${PACKAGE_NAME}@$PUBLISH_VERSION
sed -i "/version/s/dev.0/dev.$TIME/g" packages/*/package.json

BRANCH=${GITHUB_REF##*/}
TAG=""
Expand All @@ -20,4 +16,4 @@ elif [[ "$BRANCH" == "testnet" ]]; then
TAG="testnet-"
fi

npm publish --access public --tag ${TAG}dev
npm publish --ws --access public --tag ${TAG}dev
Loading