291st/.gitea/workflows/build.yml
ztimson d0fa2c6490
Some checks failed
Build / Dependencies_NPM (push) Failing after 45s
Build / Build_Node (push) Failing after 4s
Update .gitea/workflows/build.yml
2023-07-27 02:00:23 +00:00

33 lines
773 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: Install Dependencies
run: npm i
- name: Cache Dependencies
if: success()
uses: actions/cache@v3
with:
path: node_modules
key: ${{ hashFiles('**/package-lock.json') }}
Build_Node:
runs-on: Docker
container:
image: node:16
steps:
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
with:
path: node_modules
key: ${{ hashFiles('**/package-lock.json') }}
- name: Build
run: npm run build