Skip to content

Commit d7a31db

Browse files
Bump dependencies and fix typos (#181)
* Update bun.lock * Bump eslint * Bye ESLint 9 * Update gitignore * Fix typos * Fix * Update CI * My bad folks * Fix ESLint warning, pin ESLint, update lockfile * Update license * Delete LICENSE.txt --------- Co-authored-by: Jafeth Garro <[email protected]>
1 parent 7364d1b commit d7a31db

File tree

6 files changed

+110
-144
lines changed

6 files changed

+110
-144
lines changed

.github/workflows/nextjs.yml

+16-40
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,66 @@
1-
# Sample workflow for building and deploying a Next.js site to GitHub Pages
2-
#
3-
# To get started with Next.js see: https://nextjs.org/docs/getting-started
4-
#
5-
name: Deploy Next.js site to Pages
1+
name: Deploy Zen Docs
62

73
on:
8-
# Runs on pushes targeting the default branch
94
push:
105
branches: ["main"]
11-
12-
# Allows you to run this workflow manually from the Actions tab
136
workflow_dispatch:
147

15-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
168
permissions:
179
contents: read
1810
pages: write
1911
id-token: write
2012

21-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2313
concurrency:
2414
group: "pages"
2515
cancel-in-progress: false
2616

2717
jobs:
28-
# Build job
2918
build:
3019
runs-on: ubuntu-latest
20+
3121
steps:
32-
- name: Checkout
22+
- name: Checkout repository
3323
uses: actions/checkout@v4
34-
- name: Detect package manager
35-
id: detect-package-manager
36-
run: |
37-
if [ -f "${{ github.workspace }}/package.json" ]; then
38-
echo "manager=npm" >> $GITHUB_OUTPUT
39-
echo "command=install" >> $GITHUB_OUTPUT
40-
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
41-
exit 0
42-
else
43-
echo "Unable to determine package manager"
44-
exit 1
45-
fi
46-
- name: Setup Node
24+
25+
- name: Setup Node.js
4726
uses: actions/setup-node@v4
4827
with:
49-
node-version: "20"
50-
cache: ${{ steps.detect-package-manager.outputs.manager }}
28+
node-version: "22"
29+
cache: "npm"
5130
cache-dependency-path: "package.json"
5231
check-latest: true
53-
- name: Setup Pages
32+
33+
- name: Setup GitHub Pages
5434
uses: actions/configure-pages@v5
55-
# with:
56-
# Automatically inject basePath in your Next.js configuration file and disable
57-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
58-
#
59-
# You may remove this line if you want to manage the configuration yourself.
60-
# static_site_generator: next
35+
6136
- name: Restore cache
6237
uses: actions/cache@v4
6338
with:
6439
path: |
6540
.next/cache
6641
node_modules
67-
# Generate a new cache whenever packages or source files change.
6842
key: ${{ runner.os }}-nextjs-${{ hashFiles('package.json') }}
69-
# If source files changed but packages didn't, rebuild from a prior cache.
7043
restore-keys: |
7144
${{ runner.os }}-nextjs-
45+
7246
- name: Install dependencies
73-
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
47+
run: npm install
48+
7449
- name: Build with Next.js
75-
run: ${{ steps.detect-package-manager.outputs.runner }} next build
50+
run: npx --no-install next build
51+
7652
- name: Upload artifact
7753
uses: actions/upload-pages-artifact@v3
7854
with:
7955
path: ./out
8056

81-
# Deployment job
8257
deploy:
8358
environment:
8459
name: github-pages
8560
url: ${{ steps.deployment.outputs.page_url }}
8661
runs-on: ubuntu-latest
8762
needs: build
63+
8864
steps:
8965
- name: Deploy to GitHub Pages
9066
id: deployment

LICENSE.txt renamed to LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 jackyzha0
3+
Copyright (c) 2025 Zen Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)