Replace PNPM with NPM in GitHub Actions workflow
This commit is contained in:
parent
02a4101ae2
commit
4d824fa403
5 changed files with 2564 additions and 44 deletions
8
.eslintrc.yml
Normal file
8
.eslintrc.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
env:
|
||||
browser: true
|
||||
es2021: true
|
||||
extends: standard-with-typescript
|
||||
parserOptions:
|
||||
ecmaVersion: latest
|
||||
sourceType: module
|
||||
rules: {}
|
||||
13
.github/actions/install/action.yml
vendored
13
.github/actions/install/action.yml
vendored
|
|
@ -1,13 +0,0 @@
|
|||
name: Install Tools & Dependencies
|
||||
description: Installs Node.js & package dependencies using npm
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
|
@ -1,43 +1,23 @@
|
|||
name: Code Quality Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
NODE_OPTIONS: "--max_old_space_size=4096"
|
||||
|
||||
jobs:
|
||||
astrocheck:
|
||||
name: Check for type issues with astro check
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
FORCE_COLOR: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Tools & Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run Astro Check
|
||||
run: npm run check
|
||||
|
||||
eslint:
|
||||
name: Check for code issues with ESLint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Tools & Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint:eslint
|
||||
2552
package-lock.json
generated
2552
package-lock.json
generated
File diff suppressed because it is too large
Load diff
13
package.json
13
package.json
|
|
@ -3,6 +3,7 @@
|
|||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"lint:eslint": "eslint '*/**/*.{js,ts}'",
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
"build": "astro check && astro build && node process-html.mjs",
|
||||
|
|
@ -20,13 +21,19 @@
|
|||
"gsap": "^3.12.5",
|
||||
"html-minifier": "^4.0.0",
|
||||
"preline": "^2.0.3",
|
||||
"tailwindcss": "^3.4.1",
|
||||
"typescript": "^5.4.2"
|
||||
"tailwindcss": "^3.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/forms": "^0.5.7",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-n": "^16.6.2",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-astro": "^0.13.0",
|
||||
"prettier-plugin-tailwindcss": "^0.5.12"
|
||||
"prettier-plugin-tailwindcss": "^0.5.12",
|
||||
"typescript": "^5.4.2"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue