-
Notifications
You must be signed in to change notification settings - Fork 2
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
Release bot #72
Comments
Actually those badges would be perfect in the gh release descr EDIT: used it here: https://github.com/tfiers/PkgGraph.jl/releases/tag/v0.5.0 |
did some research on writing custom actions. Links:
https://github.com/julia-actions/RegisterAction/blob/master/register.js |
a template for a custom action: https://github.com/github-developer/javascript-action |
So if I'm correct, using an action in a workflow just needs it to be public on github; and the gh actions server clones the code from there? |
Example of compiled: https://github.com/actions/javascript-action/blob/main/dist/index.js
I like the codeowners thing btw From |
(tagbot is written in Python, and runs as action in docker) |
How long does it take from initial comment to tagbot ran?
so 26 minutes total (tagbot here ran in just 20 seconds: https://github.com/tfiers/PkgGraph.jl/actions/runs/3917984856 but where is my draft release?) ah: "GitHub returned a 5xx error code" (annotations of the run)
manual "re-run all jobs" hm, same error |
So, high-level overview of what our javascript should do, from the devguide: The release commit:
Before we move on to the next commit, we should make the release on github. link in release won't work. (Release/tag must be for branch (main), not commit).
Our js script file could live just in Also for the nice badge: we need link to created PR. In the next commit:
(More of same: string replacement) When the PR is merged:Here we need to get a signal. gets updated by the tagbot actor in General, and is the tagbot here just a listener (that we can disable). (Will the actor still send if disabled here?).
I think the Docs.yml runs on the tag, so should still work. |
Error while trying to register: "Pre-release version not allowed" |
This is tagbot [in my repo] code: https://github.com/JuliaRegistries/TagBot/blob/master/tagbot/action/__main__.py (yml here: https://github.com/tfiers/PkgGraph.jl/blob/main/.github/workflows/TagBot.yml) nothing about creating issues. |
Here we go: https://github.com/JuliaRegistries/RegistryCI.jl/blob/master/src/TagBot/TagBot.jl |
Aha, this is the check :) the The |
A 'manual' link to diff with previous is nice, actually: https://github.com/simonp0420/PkgOnlineHelp.jl/releases |
So there's three ways already: https://nodejs.dev/en/learn/writing-files-with-nodejs/
|
Nice overview of links into mdn for learning modern js syntax: Interesting, js is JIT compiled: https://nodejs.dev/en/learn/the-v8-javascript-engine/#compilation WASM deepdiveon WebAssembly (https://nodejs.dev/en/learn/nodejs-with-webassembly/). My understanding from twitter etc is that WASM is fast; but data marshalling is slow, and if you want to interact with the user, that needs to happen.
("LLVM for the web" above: ig Node JIT has its own internal IR. Related: wasm and llvm? → https://webassembly.org/docs/faq/ / "Why not just use LLVM bitcode as a binary format?")
(https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/)
(https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-intro.md) "CG" in wasm jargon means Community Group. https://webassembly.github.io/cg-charter/ |
TS: https://nodejs.dev/en/learn/nodejs-with-typescript/ so you need to compile it, ig TS decision y/n depends on how much better the IDE experience is. What I want is live repl experience (like julia-vscode with file and repl and alt-enter, or prolly like clojure). so is that possible in vscode? and w/ typescript? Ok this seems good: JavaScript REPL - Visual Studio Marketplace (which yes has TS support too) weird that not open source. ah, and then, of course, there's https://observablehq.com/ node has repl yes. you can prob include files there. but then no typing code in editor. maybe you can do some weird workflow with browser devtools that lets you edit a js 'file' (w/o reloading page) |
Where to put this code. New repo is cleaner cause it's not just the .js or .ts file so. I'll do directly in new repo, to not soil this repo with kilobytes of gibberish (I could do the npm-install inside the action/workflow sure; then no commit of gibberish necessary. but yeah, a pre-compiled/built/resolved script is better: faster run and less energeia so, I'll do in new repo; but a dumb one; and no pre'compile'/'linking' necessary yet. for data-to-act-on, can hardlink to PkgGraph where to put on disk. it's a js proj.. Somewhere in ~ root mayb ig. w/e. I have sth like ~/archive for later (or just delete, ofc. it's archived on gh) |
For the steps (#72 (comment)): Actually step two could be manual. And then yes, step one adds a commented-out section; just without a version yet. So ok, step 1:
Step 2 is manual. Step 3:
|
(no, tagbot etc no good enough)
(they good to steal from ('built upon') though)
automate steps of devguide release guide.
a cool badge for readme:
moar
The text was updated successfully, but these errors were encountered: