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 +}