Skip to content

Commit 80a04a8

Browse files
committed
fix: attempt 1 to fix CI/CD
1 parent c01d164 commit 80a04a8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
- name: Detect package manager
3333
id: detect-package-manager
3434
run: |
35-
if [ -f "${{ github.workspace }}/react/yarn.lock" ]; then
35+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
3636
echo "manager=yarn" >> $GITHUB_OUTPUT
3737
echo "command=install" >> $GITHUB_OUTPUT
3838
echo "runner=yarn" >> $GITHUB_OUTPUT
3939
exit 0
40-
elif [ -f "${{ github.workspace }}/react/package.json" ]; then
40+
elif [ -f "${{ github.workspace }}/package.json" ]; then
4141
echo "manager=npm" >> $GITHUB_OUTPUT
4242
echo "command=ci" >> $GITHUB_OUTPUT
4343
echo "runner=npx --no-install" >> $GITHUB_OUTPUT

.github/workflows/nextjs.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Detect package manager
3535
id: detect-package-manager
3636
run: |
37-
if [ -f "${{ github.workspace }}/react/yarn.lock" ]; then
37+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
3838
echo "manager=yarn" >> $GITHUB_OUTPUT
3939
echo "command=install" >> $GITHUB_OUTPUT
4040
echo "runner=yarn" >> $GITHUB_OUTPUT
4141
exit 0
42-
elif [ -f "${{ github.workspace }}/react/package.json" ]; then
42+
elif [ -f "${{ github.workspace }}/package.json" ]; then
4343
echo "manager=npm" >> $GITHUB_OUTPUT
4444
echo "command=ci" >> $GITHUB_OUTPUT
4545
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
@@ -67,10 +67,10 @@ jobs:
6767
path: |
6868
.build/cache
6969
# Generate a new cache whenever packages or source files change.
70-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/react/package-lock.json', '**/react/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
70+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
7171
# If source files changed but packages didn't, rebuild from a prior cache.
7272
restore-keys: |
73-
${{ runner.os }}-nextjs-${{ hashFiles('**/react/package-lock.json', '**/react/yarn.lock') }}-
73+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
7474
- name: Install dependencies
7575
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7676
- name: Build with Next.js

0 commit comments

Comments
 (0)