From 9608cc262370e68ec84deba217bd41451ad3ea55 Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Wed, 3 Jul 2024 12:51:30 +0100 Subject: [PATCH 1/5] update (package.json): specifying the explicit relative path --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d64c02c..8f40add 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ ], "main": "./dist/header.umd.js", "module": "./dist/header.mjs", - "types": "dist/index.d.ts", + "types": "./dist/index.d.ts", "exports": { ".": { "import": "./dist/header.mjs", From 3334656d0a3a9e8b6132aee6212f9d6c5da20975 Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Wed, 3 Jul 2024 13:03:57 +0100 Subject: [PATCH 2/5] add new action job for build for CI --- .github/workflows/npm-publish.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 8849453..dd9008c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,3 +11,16 @@ jobs: secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - name: Install dependencies + run: yarn install + - name: Build + run: yarn build From 1ad63712b3ea29f7d3907962adaa87c9751244e7 Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Wed, 3 Jul 2024 13:08:42 +0100 Subject: [PATCH 3/5] fix order of jobs --- .github/workflows/npm-publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index dd9008c..7501b04 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,12 +6,6 @@ on: - master jobs: - publish-and-notify: - uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} - build: runs-on: ubuntu-latest steps: @@ -24,3 +18,10 @@ jobs: run: yarn install - name: Build run: yarn build + + publish-and-notify: + uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }} + From 65538b6dcf1d8c1c3389873d3a3a122084fd0c32 Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Wed, 3 Jul 2024 13:13:30 +0100 Subject: [PATCH 4/5] remove the build job from github action --- .github/workflows/npm-publish.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7501b04..505df39 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,19 +6,6 @@ on: - master jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - - name: Install dependencies - run: yarn install - - name: Build - run: yarn build - publish-and-notify: uses: codex-team/github-workflows/.github/workflows/npm-publish-and-notify-reusable.yml@main secrets: From 98bb551e42612aaeed59a06755c6593a88f149c0 Mon Sep 17 00:00:00 2001 From: dependentmadani Date: Wed, 3 Jul 2024 13:13:50 +0100 Subject: [PATCH 5/5] remove the build job from github action --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f40add..8872fba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/header", - "version": "2.8.1", + "version": "2.8.2", "keywords": [ "codex editor", "header",