Update .gitea/workflows/build.yml
This commit is contained in:
parent
55e8202b2b
commit
5f01faaf9d
@ -12,7 +12,7 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm i
|
run: npm i
|
||||||
- name: Cache Dependencies
|
- name: Cache Dependencies
|
||||||
if: success()
|
if: success()
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@ -20,14 +20,14 @@ jobs:
|
|||||||
key: ${{ hashFile('package-lock.json') }}
|
key: ${{ hashFile('package-lock.json') }}
|
||||||
|
|
||||||
Build_Node:
|
Build_Node:
|
||||||
runs-on: Docker
|
runs-on: Docker
|
||||||
container:
|
container:
|
||||||
image: node:16
|
image: node:16
|
||||||
steps:
|
steps:
|
||||||
- name: Restore Cached Dependencies
|
- name: Restore Cached Dependencies
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ hashFile('package-lock.json') }}
|
key: ${{ hashFile('package-lock.json') }}
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
Loading…
Reference in New Issue
Block a user