fix: not allow file should be yarn.lock

This commit is contained in:
yi_Xu 2022-08-02 15:12:53 +08:00
parent 153d974f13
commit 7c41560050
No known key found for this signature in database
GPG Key ID: 208069D69C54E2EE

View File

@ -25,7 +25,7 @@ jobs:
filters: |
change:
- 'package-lock.json'
- 'yarn-lock.json'
- 'yarn.lock'
- 'pnpm-lock.yaml'
# ref: https://github.com/github/docs/blob/main/.github/workflows/triage-unallowed-contributions.yml
@ -38,7 +38,7 @@ jobs:
try {
const badFilesArr = [
'package-lock.json',
'yarn-lock.json',
'yarn.lock',
'pnpm-lock.yaml',
]
const badFiles = badFilesArr.join('\n')