Commit 1b8d5fd
committed
Install
Preparing for turning GitGitGadget into a bunch of GitHub Actions, we
install `@vercel/ncc`, a 'simple CLI for compiling a Node.js module into
a single file, together with all its dependencies, gcc-style.'. This
will allow us to bundle a minimal set of Javascript files and publish
the result via a tag, ready to be consumed in GitHub workflows.
The idea is to run `ncc build -s -m lib/ci-helper.ts -o dist/` to obtain
a minimized `dist/index.js` that has no additional dependencies, and
then have subdirectories (e.g. `update-prs/`) defining a GitHub Action
via an `action.yml` file and a `index.js` file that starts with the
following line
const { CIHelper } = require('../dist/index.js')
This will allow us to publish a single tag that backs the various
functionalities via different GitHub Actions, e.g:
- uses: gitgitgadget/gitgitgadget/update-prs@v1
with:
config: ${{ vars.GITGITGADGET_CONFIG }}
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>@vercel/ncc
1 parent 912f1dc commit 1b8d5fd
2 files changed
+12
-0
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
0 commit comments