From 722eddee290dc4512a818729ec152b3cdeff0289 Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:25:19 -0300 Subject: [PATCH 1/6] chore: remove .env file --- .env | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index e69de29..0000000 From be514af4611a41e2294687e05461e26feab75487 Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:26:30 -0300 Subject: [PATCH 2/6] fix: fixing github workflows --- .github/{ => workflows}/logger_npm_publish.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/logger_npm_publish.yaml (100%) diff --git a/.github/logger_npm_publish.yaml b/.github/workflows/logger_npm_publish.yaml similarity index 100% rename from .github/logger_npm_publish.yaml rename to .github/workflows/logger_npm_publish.yaml From 1532458e3df1918be221249da6d70c4c47e6364f Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:30:33 -0300 Subject: [PATCH 3/6] fix: fixing github workflows --- .github/workflows/logger_npm_publish.yaml | 3 ++- packages/logger/package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/logger_npm_publish.yaml b/.github/workflows/logger_npm_publish.yaml index 9260520..763bcbf 100644 --- a/.github/workflows/logger_npm_publish.yaml +++ b/.github/workflows/logger_npm_publish.yaml @@ -15,8 +15,9 @@ jobs: - uses: pnpm/action-setup@v3 with: version: 8 + node-version: '20.x' - run: pnpm logger i - run: pnpm logger build - - run: pnpm logger publish + - run: pnpm logger publish --no-git-check env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/logger/package.json b/packages/logger/package.json index b092181..1eea9bb 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,8 +1,8 @@ { "name": "@demmorou/logger", - "version": "1.0.7", + "version": "1.0.8", "author": "Deusimar (@demmorou)", - "description": "Custom logger implementation with winston", + "description": "Custom logger implementation based on winston. For any Node.js application.", "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", From a3852f9bd5fa63abbef14afa3aa95af36ff03634 Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:43:28 -0300 Subject: [PATCH 4/6] fix: fixing github workflows --- .github/workflows/logger_npm_publish.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/logger_npm_publish.yaml b/.github/workflows/logger_npm_publish.yaml index 763bcbf..592b3c3 100644 --- a/.github/workflows/logger_npm_publish.yaml +++ b/.github/workflows/logger_npm_publish.yaml @@ -5,17 +5,13 @@ on: branches: - 'release/logger/**' jobs: - build: + publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - node-version: '20.x' - registry-url: 'https://registry.npmjs.org' - uses: pnpm/action-setup@v3 with: version: 8 - node-version: '20.x' + node-version: 20 - run: pnpm logger i - run: pnpm logger build - run: pnpm logger publish --no-git-check From 6d75c4e397d80cfac4b7cbf7322ce27ce2313e04 Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:46:47 -0300 Subject: [PATCH 5/6] fix: fix pnpm runner setup --- .github/workflows/logger_npm_publish.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/logger_npm_publish.yaml b/.github/workflows/logger_npm_publish.yaml index 592b3c3..a74846c 100644 --- a/.github/workflows/logger_npm_publish.yaml +++ b/.github/workflows/logger_npm_publish.yaml @@ -8,12 +8,26 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - uses: pnpm/action-setup@v3 + name: Install pnpm with: version: 8 - node-version: 20 - - run: pnpm logger i - - run: pnpm logger build - - run: pnpm logger publish --no-git-check + + - name: Install dependencies + run: pnpm logger i + + - name: Build logger + run: pnpm logger build + + - name: Publish logger + run: pnpm logger publish --no-git-check env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From a6f29b0adaf29219c356abd979fcc6fb948af4fc Mon Sep 17 00:00:00 2001 From: demmorou Date: Tue, 30 Apr 2024 08:50:21 -0300 Subject: [PATCH 6/6] fix: add registry url to action --- .github/workflows/logger_npm_publish.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/logger_npm_publish.yaml b/.github/workflows/logger_npm_publish.yaml index a74846c..6291738 100644 --- a/.github/workflows/logger_npm_publish.yaml +++ b/.github/workflows/logger_npm_publish.yaml @@ -15,6 +15,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + registry-url: 'https://registry.npmjs.org' - uses: pnpm/action-setup@v3 name: Install pnpm