From e4001b6f93d234f507a4d79bb95fb370c9269397 Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 9 Mar 2024 20:58:09 +0100 Subject: [PATCH 1/3] setnodeversion in package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index bc16c4d..cf4d597 100644 --- a/package.json +++ b/package.json @@ -152,5 +152,8 @@ "#context/*": "./renderer/context/*", "#types/*": "./types/*", "#root/*": "./*" + }, + "engines": { + "node": ">=21" } } From 6f5d004f91f614cfa4500236eef060053f9876ec Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 9 Mar 2024 21:07:47 +0100 Subject: [PATCH 2/3] set node version in node-relevant workflows --- .github/workflows/frontend.deploy.chromatic.yml | 5 +++++ .github/workflows/frontend.deploy.docs.yml | 5 +++++ .github/workflows/frontend.test.build.code.yml | 5 +++++ .github/workflows/frontend.test.build.docs.yml | 5 +++++ .github/workflows/frontend.test.build.storybook.yml | 5 +++++ .github/workflows/frontend.test.lint.code.yml | 5 +++++ .github/workflows/frontend.test.unit.code.yml | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/.github/workflows/frontend.deploy.chromatic.yml b/.github/workflows/frontend.deploy.chromatic.yml index 0bb3569..411d1ef 100644 --- a/.github/workflows/frontend.deploy.chromatic.yml +++ b/.github/workflows/frontend.deploy.chromatic.yml @@ -10,6 +10,11 @@ jobs: env: CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 with: diff --git a/.github/workflows/frontend.deploy.docs.yml b/.github/workflows/frontend.deploy.docs.yml index 957e80a..80bf087 100644 --- a/.github/workflows/frontend.deploy.docs.yml +++ b/.github/workflows/frontend.deploy.docs.yml @@ -7,6 +7,11 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout uses: actions/checkout@master diff --git a/.github/workflows/frontend.test.build.code.yml b/.github/workflows/frontend.test.build.code.yml index 578fd4b..03d2ef8 100644 --- a/.github/workflows/frontend.test.build.code.yml +++ b/.github/workflows/frontend.test.build.code.yml @@ -27,6 +27,11 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/frontend.test.build.docs.yml b/.github/workflows/frontend.test.build.docs.yml index 38e4b0f..22bf1d7 100644 --- a/.github/workflows/frontend.test.build.docs.yml +++ b/.github/workflows/frontend.test.build.docs.yml @@ -27,6 +27,11 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/frontend.test.build.storybook.yml b/.github/workflows/frontend.test.build.storybook.yml index 924fcaf..3b487de 100644 --- a/.github/workflows/frontend.test.build.storybook.yml +++ b/.github/workflows/frontend.test.build.storybook.yml @@ -27,6 +27,11 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/frontend.test.lint.code.yml b/.github/workflows/frontend.test.lint.code.yml index 3917082..ffa2b56 100644 --- a/.github/workflows/frontend.test.lint.code.yml +++ b/.github/workflows/frontend.test.lint.code.yml @@ -27,6 +27,11 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 diff --git a/.github/workflows/frontend.test.unit.code.yml b/.github/workflows/frontend.test.unit.code.yml index 6ecc4bf..3dc1fec 100644 --- a/.github/workflows/frontend.test.unit.code.yml +++ b/.github/workflows/frontend.test.unit.code.yml @@ -27,6 +27,11 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: + - name: Set Node version + uses: actions/setup-node@v4 + with: + node-version: '>=21' + - name: Checkout code uses: actions/checkout@v4 From fa33d765d4e507fecfb4665c1ac83eeec2ba1df3 Mon Sep 17 00:00:00 2001 From: mahula Date: Sat, 9 Mar 2024 21:18:03 +0100 Subject: [PATCH 3/3] fix workflow syntax --- .github/workflows/frontend.deploy.docs.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/frontend.deploy.docs.yml b/.github/workflows/frontend.deploy.docs.yml index 80bf087..dbaa2f3 100644 --- a/.github/workflows/frontend.deploy.docs.yml +++ b/.github/workflows/frontend.deploy.docs.yml @@ -12,15 +12,15 @@ jobs: with: node-version: '>=21' - - name: Checkout - uses: actions/checkout@master + - name: Checkout + uses: actions/checkout@master - - name: vuepress-deploy - uses: jenkey2011/vuepress-deploy@master - env: - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - #TARGET_REPO: username/repo - #TARGET_BRANCH: master - BUILD_SCRIPT: npm install && npm run docs:build - BUILD_DIR: build/docs/ - VUEPRESS_BASE: "boilerplate-frontend" \ No newline at end of file + - name: vuepress-deploy + uses: jenkey2011/vuepress-deploy@master + env: + ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + #TARGET_REPO: username/repo + #TARGET_BRANCH: master + BUILD_SCRIPT: npm install && npm run docs:build + BUILD_DIR: build/docs/ + VUEPRESS_BASE: "boilerplate-frontend" \ No newline at end of file