Skip to content

Commit

Permalink
Switch to yarn 4 and upgrade gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubkottnauer committed Feb 5, 2024
1 parent c3c8ac7 commit 2ec86e1
Show file tree
Hide file tree
Showing 5 changed files with 8,047 additions and 5,477 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/prod_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

# https://dev.to/mattpocock/how-to-cache-nodemodules-in-github-actions-with-yarn-24eh
- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

# - name: Cache playwright binaries
# uses: actions/cache@v3
# uses: actions/cache@v4
# id: playwright-cache
# with:
# # keep the version in key in sync with package.json
Expand All @@ -46,10 +46,10 @@ jobs:
if: github.ref == 'refs/heads/main'
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: "Deploy to Vercel"
run: |
Expand Down
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ tsconfig.tsbuildinfo
# IDE
.vscode
.idea

# yarn v4
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@
"jest-environment-jsdom": "^28.1.3",
"prettier": "^2.8.7",
"typescript": "^5.0.4"
}
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 2ec86e1

Please sign in to comment.