From b0b5d0ac5ec04df4ca03bcc62e632469ba713764 Mon Sep 17 00:00:00 2001 From: Avril Li Date: Wed, 26 Aug 2020 20:33:18 +0800 Subject: [PATCH 1/4] chore: update release rule --- release.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/release.config.js b/release.config.js index a13798c..98b3864 100644 --- a/release.config.js +++ b/release.config.js @@ -11,8 +11,7 @@ module.exports = { preset: 'angular', parserOpts: { noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'BREAKING'] - }, - releaseRules: [{ type: 'feat', release: 'patch' }] + } } ], [ From 47a2beb9ff0c2e6da152f252d2f9082214844afd Mon Sep 17 00:00:00 2001 From: yugasun Date: Thu, 27 Aug 2020 16:13:36 +0800 Subject: [PATCH 2/4] fix: support cfs config --- serverless.component.yml | 2 +- src/package.json | 2 +- src/utils.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/serverless.component.yml b/serverless.component.yml index 9f8e4a0..1d228ea 100644 --- a/serverless.component.yml +++ b/serverless.component.yml @@ -1,5 +1,5 @@ name: django -version: 0.0.5 +version: 0.0.6 author: Tencent Cloud, Inc. org: Tencent Cloud, Inc. description: Deploy a Django application onto Tencent SCF and API Gateway. diff --git a/src/package.json b/src/package.json index 9a9d323..a53fc4f 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "dependencies": { "download": "^8.0.0", - "tencent-component-toolkit": "^1.13.2", + "tencent-component-toolkit": "^1.15.7", "type": "^2.0.0" } } diff --git a/src/utils.js b/src/utils.js index aaaccab..2da2289 100644 --- a/src/utils.js +++ b/src/utils.js @@ -261,6 +261,9 @@ const prepareInputs = async (instance, credentials, inputs = {}) => { layers: ensureIterable(tempFunctionConf.layers ? tempFunctionConf.layers : inputs.layers, { default: [] }), + cfs: ensureIterable(tempFunctionConf.cfs ? tempFunctionConf.cfs : inputs.cfs, { + default: [] + }), publish: inputs.publish, traffic: inputs.traffic, lastVersion: instance.state.lastVersion, From 5bf6fe4e6139186e6d7d3c5c9d17f75c9531c15c Mon Sep 17 00:00:00 2001 From: Avril Li Date: Wed, 2 Sep 2020 11:40:45 +0800 Subject: [PATCH 3/4] chore: add ygsec check --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e311618..b7bbfda 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,9 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged", + "pre-commit": "ygsec && lint-staged", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-push": "npm run lint:fix && npm run prettier:fix" + "pre-push": "ygsec && npm run lint:fix && npm run prettier:fix" } }, "lint-staged": { @@ -45,13 +45,14 @@ "@semantic-release/npm": "^7.0.4", "@semantic-release/release-notes-generator": "^9.0.1", "@serverless/platform-client-china": "^1.0.19", + "@ygkit/secure": "0.0.3", "babel-eslint": "^10.1.0", "dotenv": "^8.2.0", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.0", "eslint-plugin-import": "^2.20.1", "eslint-plugin-prettier": "^3.1.2", - "husky": "^4.2.3", + "husky": "^4.2.5", "jest": "^25.0.1", "lint-staged": "^10.0.8", "prettier": "^1.19.1", From 073b3b563f69a13e4ceb1b2f5c94bcb2d8edfed7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 2 Sep 2020 03:42:31 +0000 Subject: [PATCH 4/4] chore(release): version 0.0.6 ## [0.0.6](https://github.com/serverless-components/tencent-django/compare/v0.0.5...v0.0.6) (2020-09-02) ### Bug Fixes * support cfs config ([47a2beb](https://github.com/serverless-components/tencent-django/commit/47a2beb9ff0c2e6da152f252d2f9082214844afd)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77bb554..0a44f87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.0.6](https://github.com/serverless-components/tencent-django/compare/v0.0.5...v0.0.6) (2020-09-02) + + +### Bug Fixes + +* support cfs config ([47a2beb](https://github.com/serverless-components/tencent-django/commit/47a2beb9ff0c2e6da152f252d2f9082214844afd)) + ## [0.0.5](https://github.com/serverless-components/tencent-django/compare/v0.0.4...v0.0.5) (2020-08-26)