github action to compile your github action
uses @vercel/ncc
- forked from tool3/ncc but i disliked the combination of compiling and pushing into a single action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: sidey79/[email protected]
with:
src: 'index.js'
# Push back the created dist file to your branch
- uses: EndBug/add-and-commit@v7
with:
message: Commit Dist file
committer_name: GitHub Actions
committer_email: [email protected]
add: 'dist'
signoff: true
push: true
this will:
- compile
index.js
from the repo root directory. - save the result into
dist
directory to the working directory.
required
default: index.js
command seperated args for ncc
exmaple: '-o, other_dist, -C'