Skip to content

Commit

Permalink
Tag nightlies as prerelease releases (#3892)
Browse files Browse the repository at this point in the history
This does 2 main things:
- Sets each nightly release as a prerelease on GH's [releases](https://github.com/vercel/turbo/releases) page
- Adds a [notice annotation](https://www.npmjs.com/package/@actions/core#:~:text=These%20will%20surface%20to%20the%20UI%20in%20the%20Actions%20page%20and%20on%20Pull%20Requests.%20They%20look%20something%20like%20this%3A) to the workflow, so that the new tag is logged in the workflow's execution

Additionally, it fixes the `pnpm` workspace so that the action's dist code is actually built. This also means we'll finally see the output of #3819 in our release bodies.
  • Loading branch information
jridgewell authored Feb 21, 2023
1 parent cda81f6 commit 12e2727
Show file tree
Hide file tree
Showing 7 changed files with 208 additions and 49 deletions.
4 changes: 2 additions & 2 deletions .github/actions/turbopack-bump/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/turbopack-bump/dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/actions/turbopack-bump/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"version": "1.0.0",
"scripts": {
"build:index": "ncc build src/index.ts -o dist --source-map --minify",
"prepare": "npm run build:index"
"build": "ncc build src/index.ts -o dist --source-map --minify",
"prepare": "npm run build"
},
"dependencies": {
"@actions/core": "^1.10.0",
Expand Down
1 change: 1 addition & 0 deletions .github/actions/turbopack-bump/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async function run() {

core.setOutput("new_tag", nextTag);
await createTag(octokit, nextTag, commitSha);
core.notice(`New tag is ${nextTag}`);

// TODO: generate real release notes
core.setOutput(
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/turbopack-nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ jobs:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Turbopack Nightly Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
prerelease: true
Loading

1 comment on commit 12e2727

@vercel
Copy link

@vercel vercel bot commented on 12e2727 Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.