Skip to content

Commit

Permalink
fix stupid stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rnag committed Feb 11, 2024
1 parent 4fe277f commit 63f49d5
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,21 @@ jobs:
with:
node-version: 18
cache: 'npm'
- name: Cache global node modules
uses: actions/cache@v4
id: global-npm-cache
env:
cache-name: cache-global-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache node modules
id: npm-cache
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
Expand All @@ -73,11 +85,12 @@ jobs:
- name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install dependencies
- name: Install Global Dependencies
if: ${{ steps.global-npm-cache.outputs.cache-hit != 'true' }}
run: npm i -g surge
- name: Install Dependencies
if: ${{ steps.npm-cache.outputs.cache-hit != 'true' }}
run: |
npm i -g surge
npm ci
run: npm ci
- name: Build and Deploy to Surge
run: |
npm run build
Expand Down

0 comments on commit 63f49d5

Please sign in to comment.