Checkout Code, Setup Node and YARN Cache by SO
#... run config ...
jobs:
name-job:
runs-on: ubuntu-latest
steps:
# Add like first step
- name: Checkout / Setup Node / NPM-Cache
uses: Travelonux/action-node-yarn-cache@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
#... next steps ...
The following inputs are available (some of them are optional):
Input (click on name for description) | Allowed values | Default | Required |
---|---|---|---|
|
Valid Github Token | - | yes |
fetch-depth |
Like Checkout | 1 | no |
node-version |
Like Setup-Node | 16.x | no |