Skip to content

Commit f2eccfc

Browse files
Merge branch 'master' of github.com:opensource254/opensource254.github.io
2 parents 257d730 + 30ac498 commit f2eccfc

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/nuxtjs.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
1414

15-
env:
16-
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
17-
1815
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1916
permissions:
2017
contents: read
@@ -33,39 +30,27 @@ jobs:
3330
runs-on: ubuntu-latest
3431
steps:
3532
- name: Checkout
36-
uses: actions/checkout@v5
33+
uses: actions/checkout@v4
3734
- name: Detect package manager
3835
id: detect-package-manager
3936
run: |
40-
if [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
41-
echo "manager=pnpm" >> $GITHUB_OUTPUT
42-
echo "command=install --frozen-lockfile" >> $GITHUB_OUTPUT
43-
echo "runner=pnpm" >> $GITHUB_OUTPUT
44-
exit 0
45-
elif [ -f "${{ github.workspace }}/yarn.lock" ]; then
37+
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
4638
echo "manager=yarn" >> $GITHUB_OUTPUT
4739
echo "command=install" >> $GITHUB_OUTPUT
48-
echo "runner=yarn" >> $GITHUB_OUTPUT
4940
exit 0
5041
elif [ -f "${{ github.workspace }}/package.json" ]; then
5142
echo "manager=npm" >> $GITHUB_OUTPUT
5243
echo "command=ci" >> $GITHUB_OUTPUT
53-
echo "runner=npm" >> $GITHUB_OUTPUT
5444
exit 0
5545
else
5646
echo "Unable to determine package manager"
5747
exit 1
5848
fi
59-
- name: Setup pnpm
60-
if: steps.detect-package-manager.outputs.manager == 'pnpm'
61-
uses: pnpm/action-setup@v4
62-
with:
63-
version: 10
6449
- name: Setup Node
65-
uses: actions/setup-node@v6
50+
uses: actions/setup-node@v4
6651
with:
6752
node-version: "20"
68-
cache: ${{ steps.detect-package-manager.outputs.runner }}
53+
cache: ${{ steps.detect-package-manager.outputs.manager }}
6954
- name: Setup Pages
7055
uses: actions/configure-pages@v5
7156
with:
@@ -78,9 +63,9 @@ jobs:
7863
uses: actions/cache@v4
7964
with:
8065
path: |
81-
.output/public
66+
dist
8267
.nuxt
83-
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('pnpm-lock.yaml') }}
68+
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
8469
restore-keys: |
8570
${{ runner.os }}-nuxt-build-
8671
- name: Install dependencies
@@ -90,7 +75,7 @@ jobs:
9075
- name: Upload artifact
9176
uses: actions/upload-pages-artifact@v3
9277
with:
93-
path: ./.output/public
78+
path: ./dist
9479

9580
# Deployment job
9681
deploy:

0 commit comments

Comments
 (0)