macos-defaults/build/github
snyk-bot 8255326701
⬆️ Upgrade yaml from 1.10.0 to 1.10.2
Snyk has created this PR to upgrade yaml from 1.10.0 to 1.10.2.

See this package in npm:


See this project in Snyk:
https://app.snyk.io/org/yannbertrand/project/4aa59eb6-bc6e-4c64-adf0-edb1f8227121?utm_source=github&utm_medium=upgrade-pr
2021-04-09 23:04:25 +02:00
..
__mocks__ 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
__snapshots__ 💄 Add Netlify image width & height 2020-11-07 12:16:05 +01:00
templates 💄 Add Netlify image width & height 2020-11-07 12:16:05 +01:00
build.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
package.json ⬆️ Upgrade yaml from 1.10.0 to 1.10.2 2021-04-09 23:04:25 +02:00
readme.md 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-categories.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-categories.test.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-config.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-config.test.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-homepage.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-homepage.test.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-pages.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
write-pages.test.js 🚨 Run Prettier 2020-11-27 14:39:16 +01:00
yarn.lock ⬆️ Upgrade yaml from 1.10.0 to 1.10.2 2021-04-09 23:04:25 +02:00

GitHub Build

GitHub build status

Instead of building a website, I wanted to try constructing GitHub readmes linked from one to the other. As the project is simple, I thought it could be a decent choice.

My opinion

Unfortunately, it's not possible to display videos in GitHub Flavored Markdown. Images can't be sized using HTML width and height to avoid Cumulative Layout Shift. I also didn't a find a proper way to internationalize.

Apart from that I'm sure it could be used for real small projects as it avoids setting up anything else.

How does it work?

The build-github.yml GitHub Action workflow is triggered when the defaults.yml file or the related build scripts are updated.

This workflow compile a dist folder where gitmoji-changelog is run and everything is commited and pushed to the current branch.

There is also some complicated stuff to build a clean initial commit, that's the point of write-initial-tree.js.

The GitHub action that runs gitmoji-changelog and pushes to the other branch can be found on gha-publish-to-git.

Try locally

🏗 Install

yarn install

🚀 Usage

This will build the defaults.yml file to a dist and a dist-initial folders containing GitHub Flavored Markdown files.

yarn build

It's not yet possible to launch a webserver to preview it locally.

🚧 Run unit tests

yarn test