Skip to content

Commit

Permalink
Upgrade Astro to v4 and refactor tests to ESM (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Mar 29, 2024
1 parent 9c7302c commit 210b2c7
Show file tree
Hide file tree
Showing 11 changed files with 8,205 additions and 12,679 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: npm

- name: Install Dependencies
run: npm ci

- name: Test
run: npm run test:ci
run: npm t

lint:
runs-on: ubuntu-latest
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: npm

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 16.x
- name: Setup Node.js 20
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 20

- name: Cache node_modules
uses: actions/cache@v2
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
4 changes: 2 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "astro preview"
},
"devDependencies": {
"@astrojs/mdx": "^0.19.7",
"astro": "^2.8.3"
"@astrojs/mdx": "^2.2.2",
"astro": "^4.5.12"
}
}
Loading

0 comments on commit 210b2c7

Please sign in to comment.