Workflow updates
parent
917ef22d9a
commit
9e2ece71af
|
@ -17,25 +17,31 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x]
|
node-version: [18, 20]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install node packages
|
- name: Install node packages
|
||||||
run: npm run setup
|
run: pnpm run setup
|
||||||
|
|
||||||
- name: Generate api doc
|
- name: Generate api doc
|
||||||
run: npm run apidoc
|
run: pnpm run apidoc
|
||||||
|
|
||||||
- name: Code Format
|
- name: Code Format
|
||||||
run: npm run format
|
run: pnpm run format
|
||||||
|
|
||||||
- name: Commit doc
|
- name: Commit doc
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -15,18 +15,18 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x, 18.x]
|
node-version: [18, 20]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm run setup
|
pnpm run setup
|
||||||
npm run build:lib
|
pnpm run build:lib
|
||||||
|
|
|
@ -13,31 +13,38 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x, 18.x]
|
node-version: [18, 20]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm run setup
|
pnpm run setup
|
||||||
|
|
||||||
- name: Lint Check
|
- name: Lint Check
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
pnpm run lint
|
||||||
|
|
||||||
- name: Code Format Check
|
- name: Code Format Check
|
||||||
id: codeFormatCheck
|
id: codeFormatCheck
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
npm run format:check
|
pnpm run format:check
|
||||||
|
|
||||||
|
|
||||||
- name: Code Format
|
- name: Code Format
|
||||||
if: always() && steps.codeFormatCheck.outcome == 'failure'
|
if: always() && steps.codeFormatCheck.outcome == 'failure'
|
||||||
|
@ -51,7 +58,7 @@ jobs:
|
||||||
- name: Security Check
|
- name: Security Check
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
npm run security:check
|
pnpm run security:check
|
||||||
|
|
||||||
# - name: Unit Tests Check
|
# - name: Unit Tests Check
|
||||||
# if: ${{ success() }}
|
# if: ${{ success() }}
|
||||||
|
|
|
@ -24,33 +24,33 @@ jobs:
|
||||||
with:
|
with:
|
||||||
message: 'Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please [manually link to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#manually-linking-a-pull-request-or-branch-to-an-issue-using-the-issue-sidebar) or mention it in the description using #<issue_id>.'
|
message: 'Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please [manually link to an issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#manually-linking-a-pull-request-or-branch-to-an-issue-using-the-issue-sidebar) or mention it in the description using #<issue_id>.'
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
npm run setup
|
pnpm run setup
|
||||||
|
|
||||||
- name: Code Format
|
- name: Code Format
|
||||||
id: codeFormat
|
id: codeFormat
|
||||||
run: |
|
run: |
|
||||||
npm run format:check
|
pnpm run format:check
|
||||||
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
id: unitTest
|
id: unitTest
|
||||||
run: |
|
run: |
|
||||||
npm run test:unit
|
pnpm run test:unit
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
pnpm run lint
|
||||||
|
|
||||||
- name: Security
|
- name: Security
|
||||||
run: |
|
run: |
|
||||||
npm run security:check
|
pnpm run security:check
|
||||||
|
|
||||||
- name: Add Code Format Fail Comment
|
- name: Add Code Format Fail Comment
|
||||||
if: always() && steps.codeFormat.outcome == 'failure'
|
if: always() && steps.codeFormat.outcome == 'failure'
|
||||||
|
|
12
package.json
12
package.json
|
@ -12,7 +12,7 @@
|
||||||
"url": "https://github.com/primefaces/primevue/issues"
|
"url": "https://github.com/primefaces/primevue/issues"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"setup": "rm -rf **/node_modules **/dist ./pnpm-lock.yaml && pnpm install",
|
"setup": "rm -rf **/node_modules **/**/node_modules **/dist ./pnpm-lock.yaml && pnpm install",
|
||||||
"release": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks",
|
"release": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks",
|
||||||
"release:beta": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag beta",
|
"release:beta": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag beta",
|
||||||
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag rc",
|
"release:rc": "pnpm run build && pnpm recursive publish --filter './packages/*' --no-git-checks --tag rc",
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
"build:showcase": "pnpm --filter showcase build:prebuild",
|
"build:showcase": "pnpm --filter showcase build:prebuild",
|
||||||
"dev": "pnpm --filter showcase dev",
|
"dev": "pnpm --filter showcase dev",
|
||||||
"module:dev": "pnpm --filter @primevue/nuxt-module dev",
|
"module:dev": "pnpm --filter @primevue/nuxt-module dev",
|
||||||
"security:check": "pnpm audit --production --audit-level high",
|
"security:check": "pnpm audit --prod --audit-level high",
|
||||||
"format": "prettier --write \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
|
"format": "prettier --write \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
|
||||||
"format:check": "prettier --check \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
|
"format:check": "prettier --check \"**/*.{vue,js,mjs,ts,d.ts}\" \"!packages/themes/types/**/*.d.ts\"",
|
||||||
"lint": "eslint --ext \".vue,.js,.mjs,.ts\" --ignore-path .gitignore . --cache",
|
"lint": "eslint --ext \".vue,.js,.mjs,.ts\" --ignore-path .gitignore . --cache",
|
||||||
|
@ -43,8 +43,12 @@
|
||||||
"rollup-plugin-postcss": "^4.0.0",
|
"rollup-plugin-postcss": "^4.0.0",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"rollup-plugin-vue": "^6.0.0-beta.9",
|
"rollup-plugin-vue": "^6.0.0-beta.9",
|
||||||
"eslint": "^9.2.0",
|
"eslint": "^8.30.0",
|
||||||
"prettier": "^3.2.5",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
|
"eslint-plugin-nuxt": "^4.0.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"eslint-plugin-vue": "^9.4.0",
|
||||||
|
"prettier": "2.7.1",
|
||||||
"pnpm": "9.1.4"
|
"pnpm": "9.1.4"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
|
16194
pnpm-lock.yaml
16194
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue