forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release tooling (redwoodjs#4274)
* add release tooling * correct package json script * remove notes * remove comments * improve comments, disable some functionality * flesh out release patch * fix constraints * mv release-notes * rename release notes files * update yarn lock, many changes * updates * dedupe * update, add tests * tests * add msw, make more interactive * test updates * restore choices array * handle release notes * add confirm * improve prompts * prompts * copy * fix bug in prompt * prompts * updates * fix * updates Co-authored-by: David Price <thedavid@thedavidprice.com>
- Loading branch information
1 parent
2dbfd45
commit 8b95fc7
Showing
15 changed files
with
1,425 additions
and
207 deletions.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
tasks/release/__snapshots__/generateReleaseNotes.test.mjs.snap
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,35 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`generateReleaseNotes works 1`] = ` | ||
"# Changelog | ||
Unique contributors: 3 | ||
PRs merged: 3 | ||
## Features | ||
- Added Decimal field type to Scaffold #4169 by @BBurnworth | ||
## Fixed | ||
- Type fix for \`mockGraphQL\` data argument #4164 by @callingmedic911 | ||
## Chore | ||
- Add storybook ci option to test that Storybook starts \\"ok\\" #3515 by @virtuoushub | ||
### Package Dependencies | ||
<details> | ||
<summary>View all Dependency Version Upgrades</summary> | ||
<ul> | ||
</ul> | ||
</details> | ||
## Manual | ||
" | ||
`; |
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,37 @@ | ||
#!/usr/bin/env node | ||
/* eslint-env node, es2021 */ | ||
|
||
import yargs from 'yargs' | ||
import { hideBin } from 'yargs/helpers' | ||
|
||
import generateReleaseNotes from './generateReleaseNotes.mjs' | ||
import release from './release.mjs' | ||
import updateNextReleasePullRequestsMilestone from './updateNextReleasePullRequestsMilestone.mjs' | ||
|
||
yargs(hideBin(process.argv)) | ||
.scriptName('release') | ||
.command('$0', 'Release RedwoodJS', {}, release) | ||
.command( | ||
'generate-release-notes [milestone]', | ||
'Generates release notes for a given milestone', | ||
(yargs) => { | ||
yargs.positional('milestone', { | ||
describe: 'The milestone to generate release notes for', | ||
type: 'string', | ||
}) | ||
}, | ||
(argv) => generateReleaseNotes(argv.milestone) | ||
) | ||
.command( | ||
'update-next-release-prs-milestone <milestone>', | ||
"Update next-release PRs' milestone. Note that this creates the milestone if it doesn't exist", | ||
(yargs) => { | ||
yargs.positional('milestone', { | ||
describe: 'The milestone to update next-release PRs to', | ||
type: 'string', | ||
}) | ||
}, | ||
(argv) => updateNextReleasePullRequestsMilestone(argv.milestone) | ||
) | ||
.help() | ||
.parse() |
Oops, something went wrong.