From d5d0cf9862c6ee5ef16a437ba3d2f7194bb624f8 Mon Sep 17 00:00:00 2001 From: Denis Blanchette Date: Fri, 3 May 2024 16:42:41 -0400 Subject: [PATCH] ci: Use commit token to push releases --- .github/workflows/semantic-release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml index c0f532f0..b01d46b5 100644 --- a/.github/workflows/semantic-release.yaml +++ b/.github/workflows/semantic-release.yaml @@ -8,9 +8,12 @@ permissions: jobs: semantic-release: + environment: production runs-on: [ ubuntu-latest ] steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.COMMIT_TOKEN }} - uses: actions/setup-node@v4 with: node-version: 'lts/*' @@ -24,6 +27,6 @@ jobs: - name: Release shell: bash env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.COMMIT_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} run: npx semantic-release