Skip to content

Commit

Permalink
Added cache path to Node Setup, changed username of auto-commiter
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyStilson committed Aug 15, 2023
1 parent ba1c71c commit 9e6510e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: "Clone master"
uses: actions/checkout@v3
with:
Expand All @@ -30,12 +31,12 @@ jobs:
ref: compiler
path: release


- name: "Install Node"
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'npm'
cache-dependency-path: compiler/src/package-lock.json

- name: "Test and build scripts"
run: |
Expand All @@ -44,8 +45,11 @@ jobs:
npm run build
- name: "Commit resulting build to release branch"

run: |
cd "../../release"
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Automatic commit, run id: ${{ github.run_id }}
Expand Down

0 comments on commit 9e6510e

Please sign in to comment.