Scripts: use commons action for setup

This commit is contained in:
Pieter Vander Vennet 2025-04-26 22:54:53 +02:00
parent 8d6f9ea94f
commit fb99350d8a
6 changed files with 57 additions and 46 deletions

View file

@ -0,0 +1,17 @@
name: 'Setup'
description: 'Checkout code, set up Nodejs run `npm ci`'
runs:
using: 'composite'
steps:
- uses: https://source.mapcomplete.org/actions/checkout@v4
- name: Checkout up Node.js
uses: https://source.mapcomplete.org/actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: package-lock.json
- name: install deps
run: npm ci
shell: bash