fix gh workflow to install and cache deps
This commit is contained in:
parent
527c5c7ce2
commit
8fceb5b6e4
1 changed files with 9 additions and 1 deletions
10
.github/workflows/main.yaml
vendored
10
.github/workflows/main.yaml
vendored
|
|
@ -13,13 +13,21 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Cache node_modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "14"
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
run: |
|
||||
cd extension
|
||||
npm install
|
||||
|
||||
- name: Build and Publish
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue