turbo
16310294 - chore(release): remove goreleaser (#9909)

Commit
357 days ago
chore(release): remove goreleaser (#9909) ### Description Finally remove `goreleaser` after Go left the codebase a year ago. This does almost exactly what we were doing with `goreleaser` except we now base the native releases off of `version.txt` contents like every other package and not Git tags. I highly recommend reading each commit especially the first one as I mark up the `goreleaser` flow we were using explaining what exactly it did. **Updates from #9905** Include `LICENSE` in the native package distributions Create a tarball containing a directory that contains our package. Closer reading of the [npm docs](https://docs.npmjs.com/cli/v8/commands/npm-publish) make it clear this is what it expects: > A package is interpreted the same way as other commands: a) a folder containing a program described by a `package.json` file b) a gzipped tarball containing (a) We had `wrap_in_directory: true` in our [goreleaser](https://github.com/vercel/turborepo/blob/main/cli/combined-shim.yml#L45) workflow which did this for us. ### Testing Instructions [Latest dry run](https://github.com/vercel/turborepo/actions/runs/13183590746) The dry run got up to the [publishing step](https://github.com/vercel/turborepo/actions/runs/13169658592/job/36758329441#step:10:218)! All of the `tar.gz` files look correct: [logs](https://github.com/vercel/turborepo/actions/runs/13169658592/job/36758329441#step:10:298) Running locally, the contents of `tar.gz` looks to be correct: ``` [0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo/cli $ tar tf dist/darwin-x64-2.4.1-canary.0.tar.gz turbo-darwin-x64/ turbo-darwin-x64/LICENSE turbo-darwin-x64/README.md turbo-darwin-x64/bin/ turbo-darwin-x64/package.json turbo-darwin-x64/bin/turbo ``` What hasn't been tested is the actual `npm publish` call, but I am fairly certain that will work as it's a very similar shell command to the one used in `goreleaser`
Parents
Loading