Skip to content

Commit

Permalink
chore: update github actions (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinRoy authored Jan 25, 2024
1 parent 818270a commit 345928b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node.js 20.x.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x.x
- name: Install pnpm
Expand All @@ -27,7 +27,7 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand All @@ -36,7 +36,7 @@ jobs:
${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- run: pnpm run build-all
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: 'build'
path: 'packages/*/dist/'
Expand All @@ -45,9 +45,9 @@ jobs:
needs: ['build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node.js 20.x.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x.x
- name: Install pnpm
Expand All @@ -59,15 +59,15 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download
with:
name: 'build'
Expand All @@ -77,9 +77,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node.js 20.x.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x.x
- name: Install pnpm
Expand All @@ -91,7 +91,7 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand All @@ -105,9 +105,9 @@ jobs:
needs: ['build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node.js 20.x.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x.x
- name: Install pnpm
Expand All @@ -119,15 +119,15 @@ jobs:
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
id: download
with:
name: 'build'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Node.js 20.x.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x.x

Expand All @@ -29,7 +29,7 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand Down

0 comments on commit 345928b

Please sign in to comment.