From ecd541f22510e6f1d5d626631c042f120fee502a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Pi=C3=B1ones?= <30808181+dpinones@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:10:16 -0300 Subject: [PATCH] add CI (#2) --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ docusaurus.config.js | 2 +- src/pages/deprecated_index.js | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..0a0ebbc --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages + +name: Node.js CI + +on: + push: + branches: ["main"] + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm install + - run: npm run build diff --git a/docusaurus.config.js b/docusaurus.config.js index e23ad6d..2bb43bd 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -88,7 +88,7 @@ const config = { items: [ { label: 'Docs', - to: '/docs/intro', + to: '/', }, ], }, diff --git a/src/pages/deprecated_index.js b/src/pages/deprecated_index.js index a8c61f2..5d469c0 100644 --- a/src/pages/deprecated_index.js +++ b/src/pages/deprecated_index.js @@ -19,7 +19,7 @@ function HomepageHeader() {
+ to="/"> Docusaurus Tutorial - 5min ⏱️