From 7e0554d706165c84aca7cdd67dfb08a00b113571 Mon Sep 17 00:00:00 2001 From: Tom - Henry Coursow Date: Fri, 14 Jul 2023 23:53:01 +0200 Subject: [PATCH] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 90d8486..4124177 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,11 +11,25 @@ jobs: steps: - name: Get Code uses: actions/checkout@v3 - - name: Cache dependencies - uses: actions/cache@v3 + - name: Install NodeJS + uses: actions/setup-node@v3 + with: + node-version: '18' + - uses: actions/setup-go@v3 + with: + go-version: '1.20' + - uses: actions/go-hashfiles@v0.0.1 + id: get-cache-hash + with: + patterns: |- + **/package-lock.json + - name: Show key future key value + run: echo "deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}" + - name: Setup Chache + uses: https://github.com/actions/cache@v3 with: path: ~/.npm - key: npm-deps-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Install dependencies run: npm ci - name: Run server