Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(workflow): set node version in workflows #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/frontend.deploy.chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
27 changes: 16 additions & 11 deletions .github/workflows/frontend.deploy.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: '>=21'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you test this? There was node version problems with vuepress-deploy in the past.


- 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"
- 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"
5 changes: 5 additions & 0 deletions .github/workflows/frontend.test.build.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/frontend.test.build.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/frontend.test.build.storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/frontend.test.lint.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/frontend.test.unit.code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,8 @@
"#context/*": "./renderer/context/*",
"#types/*": "./types/*",
"#root/*": "./*"
},
"engines": {
"node": ">=21"
}
}
Loading