- use
actions/checkout
to checkout your repo under$GITHUB_WORKSPACE
- use
actions/setup-node
with node-version - use
iCHEF/npm-install-with-cache-action
with inputs if needed
npm-token
- defaults to''
, set auth token if your project dependency contains private packagesis-monorepo
- defaults tofalse
, set it to true if using action in a monoreposkip-cache
- defaults tofalse
, set it to true if wanna skip cache steps
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install packages with cache
uses: iCHEF/npm-install-with-cache-action@v1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
is-monorepo: true