From 603b01819b2e60f5464b26ec1cecf6af304cd0e3 Mon Sep 17 00:00:00 2001 From: Jin Teck Date: Fri, 9 Feb 2024 09:38:12 +0800 Subject: [PATCH 1/2] XDR-5469: Add CODEOWNERS, CICD workflows and update additional metadata --- .github/CODEOWNERS | 1 + .github/workflows/cd.yaml | 16 ++++++++++++++++ .github/workflows/ci.yaml | 12 ++++++++++++ .releaserc.json | 2 +- package.json | 6 +++--- 5 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/cd.yaml create mode 100644 .github/workflows/ci.yaml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..63d46d9 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @armor/xdr-reviewers diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml new file mode 100644 index 0000000..011489f --- /dev/null +++ b/.github/workflows/cd.yaml @@ -0,0 +1,16 @@ +name: Continuous Deployment +on: + workflow_run: + workflows: [Continuous Integration] + types: [completed] + branches: [main, master] + name: Continuous Deployment + +jobs: + cd: + name: Release + uses: cncsc/actions/.github/workflows/semantic-release.yaml@main + with: + environment: prod + secrets: + GIT_TOKEN_BASIC: ${{ secrets.GIT_TOKEN_BASIC }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..63dcb91 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,12 @@ +name: Continuous Integration +on: + - push + +jobs: + ci: + name: Validation + uses: cncsc/actions/.github/workflows/validation.yaml@main + with: + runPreCommit: true + runDefaultLinters: false + runDefaultTests: false diff --git a/.releaserc.json b/.releaserc.json index 3764018..abad978 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -1,3 +1,3 @@ { - "extends": "@quantum-sec/semantic-release-config/base" + "extends": "@cncsc/semantic-release-config/base" } diff --git a/package.json b/package.json index c6685d5..913b678 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "@quantum-sec/pre-commit", + "name": "@armor/pre-commit", "version": "0.0.0-development", "repository": { "type": "git", - "url": "git@github.com:quantum-sec/pre-commit.git" + "url": "git@github.com:armor/pre-commit.git" }, - "author": "Quantum Security Pte. Ltd.", + "author": "Armor Defense, Inc.", "license": "SEE LICENSE IN LICENSE" } From 5bf76033b5be08c666d919fe1a5b87af3ba3c664 Mon Sep 17 00:00:00 2001 From: Jin Teck Date: Fri, 9 Feb 2024 09:55:20 +0800 Subject: [PATCH 2/2] XDR-5469: Update package-lock.json --- package-lock.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9df8351..e3ff04b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,13 @@ { - "name": "@quantum-sec/pre-commit", + "name": "@armor/pre-commit", "version": "0.0.0-development", - "lockfileVersion": 1 + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@armor/pre-commit", + "version": "0.0.0-development", + "license": "SEE LICENSE IN LICENSE" + } + } }