Skip to content

Commit

Permalink
fix: Fix deploy pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Aug 26, 2024
1 parent 555e2da commit dbfaebe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@ jobs:
deploy-pr-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-build
with:
path: |
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-npm-packages
with:
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-to-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Python
Expand All @@ -38,7 +38,7 @@ jobs:
project_id: ${{ secrets.RUN_PROJECT_DEV }}
service_account_key: ${{ secrets.RUN_SA_KEY_DEV }}

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-build
with:
path: |
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-npm-packages
with:
path: |
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
npm install
- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-build
with:
path: |
Expand All @@ -58,10 +58,10 @@ jobs:
if: ${{ github.ref == 'refs/heads/main' }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Python
Expand All @@ -76,14 +76,14 @@ jobs:
project_id: ${{ secrets.RUN_PROJECT }}
service_account_key: ${{ secrets.RUN_SA_KEY }}

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-build
with:
path: |
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-npm-packages
with:
path: |
Expand Down Expand Up @@ -113,10 +113,10 @@ jobs:
NO_INDEX: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Python
Expand All @@ -130,14 +130,14 @@ jobs:
version: '290.0.1'
project_id: ${{ secrets.RUN_PROJECT_PROD }}
service_account_key: ${{ secrets.RUN_SA_KEY_PROD }}
- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-build
with:
path: |
build
key: ${{ runner.os }}-${{ github.sha }}

- uses: actions/cache@v2
- uses: actions/cache@v4
id: cache-npm-packages
with:
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vale-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@reviewdog
with:
reporter: github-pr-review
Expand Down

0 comments on commit dbfaebe

Please sign in to comment.