Skip to content

Commit

Permalink
feat: add nightly upgrade script & blogpost
Browse files Browse the repository at this point in the history
feat: add nightly upgrade script & blogpost
  • Loading branch information
ElianCodes authored Mar 15, 2024
2 parents 2745ede + a028e03 commit 4305657
Show file tree
Hide file tree
Showing 5 changed files with 902 additions and 712 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: nightly

on:
schedule:
- cron: "0 0 * * *"

jobs:
upgrade:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Upgrade Astro
run: pnpm dlx @astrojs/upgrade --yes

- name: PR Changes
uses: peter-evans/create-pull-request@v4
with:
branch: ci/update-astro
commit-message: "chore: ci: update Astro"
assignees: eliancodes
title: "chore: ci: update Astro"
body: Update Astro and packages to latest version
labels: ci
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.5.1",
"@astrojs/check": "^0.5.9",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.0.5",
"@astrojs/vercel": "^7.3.0",
"@eliancodes/brutal-ui": "^0.2.3",
"@astrojs/sitemap": "^3.1.1",
"@astrojs/vercel": "^7.3.6",
"@eliancodes/brutal-ui": "^0.2.6",
"@resvg/resvg-js": "^2.6.0",
"@unocss/astro": "^0.57.7",
"astro": "^4.3.5",
"@unocss/astro": "^0.58.6",
"astro": "^4.5.4",
"astro-font": "^0.0.72",
"typescript": "^5.3.3",
"unocss": "^0.57.7"
"typescript": "^5.4.2",
"unocss": "^0.58.6"
},
"devDependencies": {
"@biomejs/biome": "1.5.3",
"@biomejs/biome": "1.6.1",
"@iconify-json/logos": "^1.1.42",
"@iconify-json/uil": "^1.1.8",
"@unocss/reset": "^0.57.7",
"@unocss/reset": "^0.58.6",
"satori": "^0.7.4",
"satori-html": "^0.3.2"
}
Expand Down
Loading

0 comments on commit 4305657

Please sign in to comment.