embroider-build / create-release-plan-setup Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I found that these work:
permissions:
contents: write
pull-requests: write
setting these were required on an org that didn't have "Read & Write" selected for repos.
Here is a screenshot of the settings that had me manually add permissions
(just needed on publish (of publish.yml) and prepare_release_notes of (plan-release.yml))
https://github.com/NullVoxPopuli/limber/actions/runs/8218048537/job/22474435700
my release-plan setup is up to date:
limber-2 on main [$]
❯ npx create-release-plan-setup@latest --update
limber-2 on main [$] took 7s
❯ gs
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
Normally 🤷 , but this has an impact on exports
, since the order of those matters. (types must come before default, but alphabetically, types is after default)
I tried to add release-plan to an almost brand new svelte add-on app and after a straight-forward setup the initial PR gave this error:
release prepare
Edits the package.json and changelog files to prepare for release.
Options:
--version Show version number [boolean]
--help Show help [boolean]
--fromStdin Read the summary of changes from stdin instead of building
them from scratch. [boolean]
--singlePackage Allows you to run this command in a non monorepo and define
the package name [string]
Error: Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release
Error: Command failed with exit code 128: git describe --abbrev=0 --tags
fatal: No names found, cannot describe anything.
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:60:11)
at module.exports.sync (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:194:17)
at Object.lastTag (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/git.js:31:18)
at Changelog. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:32:56)
at Generator.next ()
at /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:8:71
at new Promise ()
at __awaiter (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:4:12)
at Changelog.createMarkdown (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:31:16)
at Object. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/cli.js:77:64)
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:114:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async gatherChanges (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/gather-changes.js:8:20)
at async newChangelogContent (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/cli.js:78:19)
at async Object.handler (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/cli.js:14:36) {
shortMessage: 'Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
command: 'node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'Error: Command failed with exit code 128: git describe --abbrev=0 --tags\n' +
'fatal: No names found, cannot describe anything.\n' +
' at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:60:11)\n' +
' at module.exports.sync (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:194:17)\n' +
' at Object.lastTag (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/git.js:31:18)\n' +
' at Changelog. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:32:56)\n' +
' at Generator.next ()\n' +
' at /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:8:71\n' +
' at new Promise ()\n' +
' at __awaiter (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:4:12)\n' +
' at Changelog.createMarkdown (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/changelog.js:31:16)\n' +
' at Object. (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/lib/cli.js:77:64)',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
We deduced it might be because there wasn't a previous github tag to compare against, so we added one but after adding a tag for the repo and rerunning the action manually we got this error instead:
release prepare
Edits the package.json and changelog files to prepare for release.
Options:
--version Show version number [boolean]
--help Show help [boolean]
--fromStdin Read the summary of changes from stdin instead of building
them from scratch. [boolean]
--singlePackage Allows you to run this command in a non monorepo and define
the package name [string]
Error: Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release
Fetch error: Forbidden.
{"message":"Resource not accessible by integration","documentation_url":"[https://docs.github.com/rest/issues/issues#get-an-issue"}](https://docs.github.com/rest/issues/issues#get-an-issue%22%7D)
at makeError (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/lib/error.js:59:11)
at handlePromise (/home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/execa/index.js:114:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async gatherChanges (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/gather-changes.js:8:20)
at async newChangelogContent (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/cli.js:78:19)
at async Object.handler (file:///home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/[email protected]/node_modules/release-plan/dist/cli.js:14:36) {
shortMessage: 'Command failed with exit code 1: node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
command: 'node /home/runner/work/svelte-concurrency/svelte-concurrency/node_modules/.pnpm/@[email protected]/node_modules/@ef4/lerna-changelog/bin/cli.js --next-version Release',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: 'Fetch error: Forbidden.\n' +
'{"message":"Resource not accessible by integration","documentation_url":"[https://docs.github.com/rest/issues/issues#get-an-issue"}](https://docs.github.com/rest/issues/issues#get-an-issue%22%7D)',
stderr: '',
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
It turns out the reason was that the repo we were setting it up on was private (and possibly has some Org settings we can't control). So I think it's worth adding to the readme that this can happen.
After making the repo public it worked like a charm! 🎉
I think the only way to solve this is to expose stdio: inherit
?
thoughts?
scenario:
# .npmrc in the repo
ignore-scripts=true
then,
pnpm publish
and then prepack
doesn't run 😩
which I believe is a bug, as ignore-scripts is not supposed to mean all scripts, and should actually be fixed in pnpm.
See also:
(this is about prepublishOnly, but it's "a" lifecycle hook -- ignore-scripts was only meant for install-based lifecycles, afaict)
idk if it makes sense to add a --build-command="pnpm build"
to create-release-plan-setup?
like, this is what I've added for now: https://github.com/NullVoxPopuli/ember-data-resources/pull/408/files#diff-551d1fcf87f78cc3bc18a7b332a4dc5d8773a512062df881c5aba28a6f5c48d7R57
Been working on readme updates: embroider-build/release-plan#58 and was wondering if these tools should live in the same spot.
E.g. this repo now has an empty stderr.log
file as well:
https://github.com/embroider-build/create-release-plan-setup/blob/main/stderr.log
Or maybe it doesn't need to be part of the commit in the first place?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.