Update node version in linting (for NPM)
This commit is contained in:
@@ -13,15 +13,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4 # Uses the GitHub Actions checkout action, which is compatible with Gitea Actions
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4 # Uses the GitHub Actions setup-node action, compatible with Gitea Actions
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20' # Specify the Node.js version you are using (e.g., 18, 20, 22)
|
node-version: '22'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install # Installs all dependencies listed in package.json
|
run: npm install
|
||||||
|
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
run: npm run lint # Executes the 'lint' script defined in your package.json
|
run: npm run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user