diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 105f1f5..ae0b72b 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -10,6 +10,8 @@ on: jobs: bump: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 with: @@ -24,6 +26,13 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Bump patch version and tag - run: 'pnpm version patch -m "chore(release): %s"' + id: bump + run: | + echo "tag=$(pnpm version patch -m 'chore(release): %s')" >> "$GITHUB_OUTPUT" - name: Push commit and tag run: git push --follow-tags + - name: Create GitHub Release + uses: softprops/action-gh-release@v2 + with: + tag_name: ${{ steps.bump.outputs.tag }} + generate_release_notes: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd6e732..7a0814c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,4 +21,4 @@ jobs: - run: pnpm run build - run: pnpm publish --access public --no-git-checks env: - NODE_AUTH_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.CODEX_SDK_NPM_TOKEN}} \ No newline at end of file