291st/.gitea/workflows/build.yml
ztimson 3966342eff
Some checks failed
Build / Dependencies_NPM (push) Failing after 1s
Update .gitea/workflows/build.yml
2023-07-27 03:33:15 +00:00

30 lines
769 B
YAML

name: Build
run-name: ${{ gitea.actor }} is building
on: [push]
jobs:
Dependencies_NPM:
runs-on: Docker
container:
image: node:16
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Create Hash
uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: package-lock.json
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
with:
path: node_modules
key: npm-${{ steps.get-hash.outputs.hash }}
- name: Install Dependencies
run: npm i
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ steps.get-hash.outputs.hash }}