It would be great to get similar syncing of the .github/workflows folder for js repos as maintaining them is tedious work.
There are a few different setups with different CI requirements:
- monorepos
- repos that only target node.js
- repos that target node.js and the browser
I spotted https://github.com/protocol/.github/tree/master/templates/.github/workflows - can we parameterise the repos in config.json to copy from subdirectories under templates? Something simple like:
[{
"target": "filecoin-project/go-amt-ipld",
"type": "go"
}, {
"target": "libp2/libp2p-tcp",
"type": "js/node"
}, {
"target": "ipfs/js-datastore-s3",
"type": "js/isomorphic"
}, {
"target": "ipfs/js-unixfs",
"type": "js/monorepo"
}
// etc
Then we can have templates/go, templates/js/monorepo, templates/js/node, templates/js/isomorphic, etc.
What do you think? Some other way?
Also, some repos have unique build requirements, like js-ipfs testing itself with various repos from the https://github.com/ipfs-examples org - I guess maybe the copying of the templates could just overwrite files that are in the templates and leave others alone? Then js-ipfs could have a .github/workflows/examples.yml file that would survive an update to templates/js/monorepo in this repo.