segmentio / analytics-next

Segment Analytics.js 2.0
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript
MIT License
403 stars 136 forks source link

Fix create-release script to work with any CWD #1013

Closed silesky closed 9 months ago

silesky commented 9 months ago

Publishing is broken (when running a workspace command, CWD is set to the package, rather than the root). It should now work regardless of where the script is called from.

Can be tested by doing:

DRY_RUN=1 TAGS=@segment/analytics-next@1.61.0 yarn ts-node-script scripts/create-release-from-tags/run.ts
DRY_RUN=1 TAGS=@segment/analytics-next@1.61.0 yarn scripts create-release-from-tags
changeset-bot[bot] commented 9 months ago

⚠️ No Changeset found

Latest commit: 1d62e211975d9f64437139bad00ead08832588ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR