diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 768d4d2..665c364 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,11 +37,10 @@ jobs: node-version: latest - run: bun install - run: bun add -g semantic-release - - run: bun add -D @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github - - name: Calculate release version - run: | - VERSION=$(npx semantic-release --dry-run | grep -Po '(?<=The next release version is ).*') - echo "$VERSION" > VERSION + - run: bun add -D @semantic-release/exec @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github + - run: npx semantic-release --no-ci --dry-run + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: bun run build - run: cp dist/index.html pqspread.html - uses: actions/upload-pages-artifact@v3 diff --git a/.releaserc b/.releaserc index eceab80..efbde01 100644 --- a/.releaserc +++ b/.releaserc @@ -7,6 +7,12 @@ "repositoryUrl": "git@github.com:forkbombeu/pqspread.git", "plugins": [ "@semantic-release/commit-analyzer", + [ + "@semantic-release/exec", + { + "verifyReleaseCmd": "echo ${nextRelease.version} > VERSION" + } + ], "@semantic-release/release-notes-generator", "@semantic-release/changelog", [