From b85e7ffe31ad3cbfd2bf916984f911bb5eb6eac5 Mon Sep 17 00:00:00 2001 From: maximlishchenko Date: Tue, 8 Oct 2024 10:56:07 +0300 Subject: [PATCH 1/4] install cicd for app-extensions-sdk --- .github/workflows/cicd_npm-publish.yml | 15 +++++++++++++++ CHANGELOG.md | 4 ++++ CODEOWNERS | 3 ++- Jenkinsfile | 3 --- package.json | 3 +++ 5 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/cicd_npm-publish.yml delete mode 100644 Jenkinsfile diff --git a/.github/workflows/cicd_npm-publish.yml b/.github/workflows/cicd_npm-publish.yml new file mode 100644 index 0000000..cd42ebf --- /dev/null +++ b/.github/workflows/cicd_npm-publish.yml @@ -0,0 +1,15 @@ +name: Publish NPM Packages + +on: + pull_request: + types: + - labeled + +jobs: + publish: + if: ${{ github.event.label.name == 'npm-ready-for-publish' }} + uses: pipedrive-actions/github-actions-workflows/.github/workflows/reusable_cicd-npm-publish.yml@master + with: + revision: ${{ github.event.pull_request.head.ref }} + supported_versions: '[18]' + secrets: inherit \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7290bab..3a3f10d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed +- Migrate publish flow from Jenkins to GitHub Actions +- Fix Owner name + ## [0.10.2] - 2024-05-31 ## [0.10.1] - 2024-04-02 diff --git a/CODEOWNERS b/CODEOWNERS index 0c51f5c..470dba0 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1,2 @@ -* @pipedrive/gravity \ No newline at end of file +* @pipedrive/gravity +.github/workflows/cicd_* @pipedrive/devops-tooling \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 335e57b..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,3 +0,0 @@ -DEFAULT_NODE_VERSION = '16' -NODE_VERSIONS = ['16'] -return this \ No newline at end of file diff --git a/package.json b/package.json index fdfe6c1..e55b6b8 100644 --- a/package.json +++ b/package.json @@ -49,5 +49,8 @@ "rollup-plugin-terser": "^7.0.2", "tslib": "^2.4.0", "typescript": "^4.6.2" + }, + "publishConfig": { + "access": "public" } } From a677be2c7c3df0ad2a2588bfd2682cdfd165ce98 Mon Sep 17 00:00:00 2001 From: maximlishchenko Date: Tue, 8 Oct 2024 12:43:05 +0300 Subject: [PATCH 2/4] fix changelog, delete supported_versions in workflow --- .github/workflows/cicd_npm-publish.yml | 1 - CHANGELOG.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cicd_npm-publish.yml b/.github/workflows/cicd_npm-publish.yml index cd42ebf..bdbf55c 100644 --- a/.github/workflows/cicd_npm-publish.yml +++ b/.github/workflows/cicd_npm-publish.yml @@ -11,5 +11,4 @@ jobs: uses: pipedrive-actions/github-actions-workflows/.github/workflows/reusable_cicd-npm-publish.yml@master with: revision: ${{ github.event.pull_request.head.ref }} - supported_versions: '[18]' secrets: inherit \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a3f10d..a45104b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Migrate publish flow from Jenkins to GitHub Actions -- Fix Owner name +- Add devops-tooling as owner for .github/workflows/cicd_* ## [0.10.2] - 2024-05-31 From 225bb2631e52668c1ca8fb7b211258157c926ded Mon Sep 17 00:00:00 2001 From: maximlishchenko Date: Thu, 10 Oct 2024 14:38:43 +0300 Subject: [PATCH 3/4] upd README.md --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a45104b..7fcbcd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] ### Changed -- Migrate publish flow from Jenkins to GitHub Actions -- Add devops-tooling as owner for .github/workflows/cicd_* +- Migrate to CI/CDv2 ## [0.10.2] - 2024-05-31 From 9fba2883f6cf33ea98907fdf07608ebd64cf5ab5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 10 Oct 2024 13:42:30 +0000 Subject: [PATCH 4/4] 0.10.3 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fcbcd1..60e428d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [0.10.3] - 2024-10-10 + ### Changed - Migrate to CI/CDv2 diff --git a/package-lock.json b/package-lock.json index 063e11f..5725d7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pipedrive/app-extensions-sdk", - "version": "0.10.2", + "version": "0.10.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@pipedrive/app-extensions-sdk", - "version": "0.10.2", + "version": "0.10.3", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@rollup/plugin-typescript": "^8.3.0", diff --git a/package.json b/package.json index e55b6b8..20430a9 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "files": [ "dist" ], - "version": "0.10.2", + "version": "0.10.3", "description": "Client SDK for Pipedrive app extensions", "scripts": { "test": "jest --passWithNoTests",