Skip to content

Commit

Permalink
Fix tag next
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Jul 8, 2024
1 parent 3a33893 commit 4a217e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
uses: ./.github/workflows/tests.yml

publish-npm-dev:
publish-npm-next:
needs: test
runs-on: ubuntu-latest
steps:
Expand Down
13 changes: 9 additions & 4 deletions scripts/publish-next.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ set -e

npm ci
npm run build
npm version --ws --preid dev --no-git-tag-version --no-commit-hooks prepatch

#Use timestamp as package suffix
TAG=next

# Update the version with a premajor, preid next, no git tag, and no commit hooks
npm version --preid $TAG --no-git-tag-version --no-commit-hooks premajor



TIME=$(date -u +%Y%m%d%H%M%S)
sed -i "/version/s/dev.0/dev.$TIME/g" packages/*/package.json
sed -i "/version/s/$TAG.0/$TAG.$TIME/g" packages/*/package.json

for packageDir in packages/*; do
if [ -d "$packageDir" ]; then
Expand All @@ -17,4 +22,4 @@ for packageDir in packages/*; do
fi
done

npm publish --ws --access public --tag ${TAG}next
npm publish --ws --access public --tag ${TAG}

0 comments on commit 4a217e3

Please sign in to comment.