diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 699a8440..02b012ec 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -4,6 +4,9 @@ on: branches: main permissions: contents: read +concurrency: + group: pr/${{github.event.number}} + cancel-in-progress: true jobs: ci: name: CI diff --git a/package-lock.json b/package-lock.json index 13b10291..4786dea7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "semantic-release": "^24.2.3", "serverless": "^3.40.0", "sinon": "^20.0.0", - "sort-package-json": "^3.0.0" + "sort-package-json": "^3.1.0" }, "engines": { "node": ">=12" @@ -10856,19 +10856,6 @@ "node": ">=8.0.0" } }, - "node_modules/get-stdin": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-9.0.0.tgz", - "integrity": "sha512-dVKBjfWisLAicarI2Sf+JuBE/DghV4UzNAVe9yhEJuzeREd3JhOTE9cUaJTeSa77fsbQUK3pcOpJfM59+VKZaA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -10901,9 +10888,9 @@ } }, "node_modules/git-hooks-list": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-3.1.0.tgz", - "integrity": "sha512-LF8VeHeR7v+wAbXqfgRlTSX/1BJR9Q1vEMR8JAz1cEg6GX07+zyj3sAdDvYjj/xnlIfVuGgj4qBei1K3hKH+PA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/git-hooks-list/-/git-hooks-list-4.1.1.tgz", + "integrity": "sha512-cmP497iLq54AZnv4YRAEMnEyQ1eIn4tGKbmswqwmFV4GBnAqE8NLtWxxdXa++AalfgL5EBH4IxTPyquEuGY/jA==", "dev": true, "license": "MIT", "funding": { @@ -21193,16 +21180,15 @@ "license": "MIT" }, "node_modules/sort-package-json": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-3.0.0.tgz", - "integrity": "sha512-vfZWx4DnFNB8R9Vg4Dnx21s20auNzWH15ZaCBfADAiyrCwemRmhWstTgvLjMek1DW3+MHcNaqkp86giCF24rMA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/sort-package-json/-/sort-package-json-3.1.0.tgz", + "integrity": "sha512-PxeCIzE+s88Qj6IXkn1SX9aPJSNkLP7epn6xj0J3Pq12SIM5+XMSaC7iLrszTDYaNfxdqZvI1z6W6LHyd1G4Hw==", "dev": true, "license": "MIT", "dependencies": { "detect-indent": "^7.0.1", "detect-newline": "^4.0.1", - "get-stdin": "^9.0.0", - "git-hooks-list": "^3.0.0", + "git-hooks-list": "^4.0.0", "is-plain-obj": "^4.1.0", "semver": "^7.7.1", "sort-object-keys": "^1.1.3", diff --git a/package.json b/package.json index dac28c66..c7f1168a 100644 --- a/package.json +++ b/package.json @@ -27,18 +27,18 @@ ], "scripts": { "build": "rimraf dist/ && babel --verbose --out-dir dist src", - "lint": "run-s -s lint:git lint:js lint:md", - "lint:js": "eslint", - "lint:md": "markdownlint . --ignore-path .gitignore", - "lint:git": "commitlint --from origin/main --to HEAD", - "lint:pkg": "sort-package-json --check", "fix": "run-s -s fix:js fix:md fix:pkg", "fix:js": "npm run -s lint:js -- --fix", "fix:md": "npm run -s lint:md -- --fix", "fix:pkg": "npm pkg fix && sort-package-json", + "lint": "run-s -s lint:git lint:js lint:md", + "lint:git": "commitlint --from origin/main --to HEAD", + "lint:js": "eslint", + "lint:md": "markdownlint . --ignore-path .gitignore", + "lint:pkg": "sort-package-json --check", "test": "run-s -s lint test:unit test:integration", - "test:unit": "nyc mocha test/unit/*.test.js", - "test:integration": "npm run -s build && mocha test/integration/*.test.js" + "test:integration": "npm run -s build && mocha test/integration/*.test.js", + "test:unit": "nyc mocha test/unit/*.test.js" }, "devDependencies": { "@babel/cli": "^7.27.0", @@ -61,7 +61,7 @@ "semantic-release": "^24.2.3", "serverless": "^3.40.0", "sinon": "^20.0.0", - "sort-package-json": "^3.0.0" + "sort-package-json": "^3.1.0" }, "peerDependencies": { "serverless": "^3"