Skip to content

Node.js Cache Test

Node.js Cache Test #6

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Cache Test
on:
workflow_dispatch:
jobs:
test-issue:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependancy-path: ${{ env.repo_dir }}/package-lock.json
- run: |
npm ci
npm run build --if-present