-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed npm install and build workflow. Added caching of node_modules (#…
…102)
- Loading branch information
1 parent
8a2e539
commit 8992129
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
name: npm build | ||
name: npm install and build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- spyne/ci | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
npm-build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
node-version: '20.x' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
working-directory: ./task-launcher | ||
|
||
- name: Cache npm dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./task-launcher/node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/task-launcher/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Build the project | ||
run: npm run build | ||
working-directory: ./task-launcher |