Skip to content

Commit

Permalink
ithub workflows updated
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuignoto committed Mar 21, 2024
1 parent 152f9c3 commit 0a47bf6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,30 @@ jobs:
node-version: [20.x]

steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8.8.0

- uses: actions/checkout@v2

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: pnpm install

- name: Cache build artifacts
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: dist
key: ${{ runner.os }}-build-${{ matrix.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v3
with:
version: 8.1.0

- uses: actions/checkout@v2

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest
name: Snyk Security Scan
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v3
with:
version: latest

- name: Cache PNPM dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
Expand All @@ -32,7 +32,7 @@ jobs:
run: pnpm install

- name: Cache Snyk cache folder
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/snyk
key: ${{ runner.os }}-snyk-${{ hashFiles('pnpm-lock.yaml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: SonarCloud Scan
Expand Down

0 comments on commit 0a47bf6

Please sign in to comment.