Skip to content

Commit

Permalink
updated deploy.yml to include npm commands instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
spider-sauce committed Dec 10, 2020
1 parent 249bcde commit c532b66
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
with:
path: |
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- uses: borales/actions-yarn@v2.0.0
- name: Install Dependencies
if: steps.cache-npm-packages.outputs.cache-hit != 'true'
with:
cmd: install
run: |
npm install
- uses: actions/cache@v2
id: cache-build
Expand All @@ -42,10 +42,10 @@ jobs:
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: borales/actions-yarn@v2.0.0
- name: Run Build
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: build
run: |
npm run build
test:
runs-on: ubuntu-latest
Expand All @@ -64,15 +64,15 @@ jobs:
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: borales/actions-yarn@v2.0.0
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: install
- name: Install Dependencies
if: steps.cache-npm-packages.outputs.cache-hit != 'true'
run: |
npm install
- uses: borales/actions-yarn@v2.0.0
- name: Run Build
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: build
run: |
npm run build
- name: install saucectl
run: |
Expand Down Expand Up @@ -115,15 +115,15 @@ jobs:
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: borales/actions-yarn@v2.0.0
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: install
- name: Install Dependencies
if: steps.cache-npm-packages.outputs.cache-hit != 'true'
run: |
npm install
- uses: borales/actions-yarn@v2.0.0
- name: Run Build
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: build
run: |
npm run build
- name: Deploy to Bucket
run: |-
Expand Down Expand Up @@ -155,15 +155,15 @@ jobs:
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: borales/actions-yarn@v2.0.0
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: install
- name: Install Dependencies
if: steps.cache-npm-packages.outputs.cache-hit != 'true'
run: |
npm install
- uses: borales/actions-yarn@v2.0.0
- name: Run Build
if: steps.cache-build.outputs.cache-hit != 'true'
with:
cmd: build
run: |
npm run build
- name: Deploy to Bucket
run: |-
Expand Down

0 comments on commit c532b66

Please sign in to comment.