forked from MapComplete/MapComplete
Scripts: use commons action for setup
This commit is contained in:
parent
8d6f9ea94f
commit
fb99350d8a
6 changed files with 57 additions and 46 deletions
17
.forgejo/snippets/setup.yml
Normal file
17
.forgejo/snippets/setup.yml
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue