From 307fa51be47acb78c82e6daa83e6a087698c3030 Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sun, 19 Nov 2023 23:03:27 -0500 Subject: [PATCH 1/5] ci: configure git with bot info --- .github/workflows/release-and-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index a8da92cf..bae84cc2 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -12,6 +12,10 @@ jobs: - uses: actions/checkout@v2 with: token: ${{ secrets.GH_TOKEN }} + - name: Configure Git + run: | + git config --global user.name "${{ secrets.CI_BOT_NAME }}" + git config --global user.email "${{ secrets.CI_BOT_EMAIL }}" - name: Use Node.js 18.x uses: actions/setup-node@v2 with: From fb232ec2ba69280091d1d5e114e65f631c5b52db Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sun, 19 Nov 2023 23:10:01 -0500 Subject: [PATCH 2/5] ci: fix config git with bot info --- .github/workflows/release-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index bae84cc2..c1f8f098 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -14,8 +14,8 @@ jobs: token: ${{ secrets.GH_TOKEN }} - name: Configure Git run: | - git config --global user.name "${{ secrets.CI_BOT_NAME }}" - git config --global user.email "${{ secrets.CI_BOT_EMAIL }}" + git config --global user.name "$CI_BOT_NAME" + git config --global user.email "$CI_BOT_EMAIL" - name: Use Node.js 18.x uses: actions/setup-node@v2 with: From 5fffe6d1dfb62013c3966b80c8842066ee991cb0 Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sun, 19 Nov 2023 23:18:32 -0500 Subject: [PATCH 3/5] ci: fix config git with bot info --- .github/workflows/release-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index c1f8f098..0204b2df 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -14,8 +14,8 @@ jobs: token: ${{ secrets.GH_TOKEN }} - name: Configure Git run: | - git config --global user.name "$CI_BOT_NAME" - git config --global user.email "$CI_BOT_EMAIL" + git config --global user.name "${{ env.CI_BOT_NAME }}" + git config --global user.email "${{ env.CI_BOT_EMAIL }}" - name: Use Node.js 18.x uses: actions/setup-node@v2 with: From 5766eaacdf1483be39c2984a298625725876b2b3 Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sun, 19 Nov 2023 23:26:20 -0500 Subject: [PATCH 4/5] ci: set bot info in yaml --- .github/workflows/release-and-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 0204b2df..2dc98f8b 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -14,8 +14,8 @@ jobs: token: ${{ secrets.GH_TOKEN }} - name: Configure Git run: | - git config --global user.name "${{ env.CI_BOT_NAME }}" - git config --global user.email "${{ env.CI_BOT_EMAIL }}" + git config --global user.email "tractr-bot@tractr.net" + git config --global user.name "tractr-bot" - name: Use Node.js 18.x uses: actions/setup-node@v2 with: From fad5a2019a50a96c03ff1a43fa3d69fa05f36bb7 Mon Sep 17 00:00:00 2001 From: Edouard Demotes Date: Sun, 19 Nov 2023 23:31:16 -0500 Subject: [PATCH 5/5] ci: adapt prepublishOnly script --- packages/api/package.json | 3 +-- packages/cli/package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/api/package.json b/packages/api/package.json index debe4430..612a833b 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -25,8 +25,7 @@ "build": "directus-extension build", "dev": "directus-extension build -w --no-minify", "link": "directus-extension link", - "test": "jest", - "prepublishOnly": "npm install && npm run format && npm test && npm run build" + "test": "jest" }, "devDependencies": { "@directus/extensions-sdk": "10.1.13", diff --git a/packages/cli/package.json b/packages/cli/package.json index e5003cbe..d81c5f6a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -10,7 +10,7 @@ "build": "tsc", "start": "ts-node-esm src/index.ts", "test": "jest", - "prepublishOnly": "cp ../../README.md ./README.md && npm install && npm run format && npm test && npm run build" + "prepublishOnly": "cp ../../README.md ./README.md" }, "keywords": [], "author": "Edouard Demotes-Mainard ",