-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add GitHub release workflow #14346
Merged
+65
−16
Merged
Add GitHub release workflow #14346
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bd0a431
Add release notes script
thecrypticace 41c3845
Mark`@tailwindcss/standalone` as private
thecrypticace cc69380
Add release drafting workflow
thecrypticace 647e042
Add logs
thecrypticace cffcfdf
Add back artifact uploading task
thecrypticace 0541c56
Disable publishing
thecrypticace 309fd88
wip
thecrypticace 737d013
Fix a linting error
thecrypticace 3024574
Bypass linting weirdness
thecrypticace 2efdcfa
Run build script in PR to debug the Standalone build
philipp-spiess 551fe08
Manually intall bun on CI workers
philipp-spiess c7e3dc7
Rename CI pipeline to CI
philipp-spiess 5b4c408
Don't `--ignore-scripts` on npm install in release job
philipp-spiess fc569c8
Update push config
philipp-spiess 8565184
Revert manual Bun installation
philipp-spiess 614e0b5
Build standalone binaries on MacOS
philipp-spiess dd85fe1
Revert changes to build script
philipp-spiess 0ede301
Only run release job manually again
philipp-spiess 2a9a812
Arm the release build again
philipp-spiess d6cb3cd
Tweak
thecrypticace 5c028d1
Make sure standalone CLI version is in sync with `@tailwindcss/cli`
thecrypticace 787b5d8
Remove `publishConfig` from standalone CLI package
thecrypticace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Given a version, figure out what the release notes are so that we can use this to pre-fill the | ||
// relase notes on a GitHub release for the current version. | ||
|
||
import * as fs from 'node:fs/promises' | ||
import * as path from 'node:path' | ||
import * as url from 'node:url' | ||
|
||
const __dirname = path.dirname(url.fileURLToPath(import.meta.url)) | ||
|
||
let version = process.argv[2] || process.env.npm_package_version | ||
if (!version) { | ||
let pkgPath = path.resolve(__dirname, '../packages/tailwindcss/package.json') | ||
let pkg = await fs.readFile(pkgPath, 'utf8').then(JSON.parse) | ||
|
||
version = pkg.version | ||
} | ||
|
||
let changelog = await fs.readFile(path.resolve(__dirname, '..', 'CHANGELOG.md'), 'utf8') | ||
let match = new RegExp( | ||
`## \\[${version}\\] - (.*)\\n\\n([\\s\\S]*?)\\n(?:(?:##\\s)|(?:\\[))`, | ||
'g', | ||
).exec(changelog) | ||
|
||
if (match) { | ||
let [, , notes] = match | ||
console.log(notes.trim()) | ||
} else { | ||
console.log(`Placeholder release notes for version: v${version}`) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed this to test so it's clearer what's going on in the GitHub action list. It's now called "CI / tests" instead of "CI / build" and "Release / build"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that's a good idea