From 665dcb803b66767777e5d5bc7372bed62c366a6f Mon Sep 17 00:00:00 2001 From: CrispyBacon1999 Date: Wed, 15 Nov 2023 23:27:29 -0500 Subject: [PATCH] fix(release.yml): Fix npm release process --- .github/workflows/release.yml | 2 ++ .releaserc.json | 14 +++++++++++++- package.json | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afd1545..ec95931 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,8 @@ jobs: node-version: "lts/*" - name: Install dependencies run: yarn install --frozen-lockfile + - name: Build + run: yarn build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index 9c89692..f4feb43 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -2,5 +2,17 @@ "branches": [ "main" ], - "tagFormat": "${version}" + "tagFormat": "${version}", + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github", + [ + "@semantic-release/npm", + { + "npmPublish": true, + "pkgRoot": "." + } + ] + ] } \ No newline at end of file diff --git a/package.json b/package.json index ac4f855..0135c0f 100644 --- a/package.json +++ b/package.json @@ -91,4 +91,4 @@ "path": "./node_modules/cz-conventional-changelog" } } -} \ No newline at end of file +}