diff --git a/.github/.dependabot.yml b/.github/.dependabot.yml new file mode 100644 index 00000000..a5a855b3 --- /dev/null +++ b/.github/.dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: npm + directory: / + schedule: + interval: daily + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..a3b37de3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: Continuous Integration + +on: + pull_request: + branches: + - main + merge_group: + types: [checks_requested] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - run: npm ci + - name: build + run: npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..e53e1c42 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - run: npm ci + - name: build + run: npm run build + - name: Add CNAME to site + run: echo "boajs.dev" > ./build/CNAME + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./build + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/blog/2024-03-07-boa-release-18.md b/blog/2024-03-07-boa-release-18.md index 666e92ee..eda57929 100644 --- a/blog/2024-03-07-boa-release-18.md +++ b/blog/2024-03-07-boa-release-18.md @@ -251,7 +251,7 @@ ECMAScript 262 specification is constantly evolving, which is why there are also changes and additions to existing builtins that keep Boa updated to the latest revisions of the specification. -All examples were taken from the [Mozilla Web Docs](developer.mozilla.org). +All examples were taken from the [Mozilla Web Docs](https://developer.mozilla.org/en-US). ### [findLast and findLastIndex on TypedArray](https://github.com/boa-dev/boa/pull/3135) diff --git a/src/components/latestPosts/latestPosts.tsx b/src/components/latestPosts/latestPosts.tsx index 09425ee1..29ed3f84 100644 --- a/src/components/latestPosts/latestPosts.tsx +++ b/src/components/latestPosts/latestPosts.tsx @@ -1,11 +1,9 @@ +import Link from "@docusaurus/Link"; +import Heading from "@theme/Heading"; import clsx from "clsx"; -import React from "react"; import styles from "./styles.module.css"; -import Heading from "@theme/Heading"; -import Link from "@docusaurus/Link"; export default function LatestPosts({ recentPosts }) { - console.log(recentPosts); return ( <div className={clsx("container", styles.wrap)}> <Heading as="h2">Latest posts</Heading> @@ -32,7 +30,7 @@ export default function LatestPosts({ recentPosts }) { year: "numeric", month: "long", day: "numeric", - }, + } )} </p> </div>