Installs and caches the pack
tool from CNCF Buildpacks.
# in your job:
name: MY GREAT JOB
on:
push:
branches:
- '*'
jobs:
pack-example:
name: Pack example!
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: andrioid/setup-pack@latest
- name: Show folks how to run Pack:
run: |
pack --help
Change the index.ts
and remember to run npm run build
afterwards. I use esbuild to bundle the source-code.
- setup-yq inspired me to write this. His action is very lean and mean.