From ed8c6853106e21595ffad3c14dc3ac7e8a05770a Mon Sep 17 00:00:00 2001 From: Mariam Mohamed <104569563+MariamM110@users.noreply.github.com> Date: Fri, 3 Nov 2023 12:06:30 +0000 Subject: [PATCH] Update release.yml (#106) --- .github/workflows/release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99e62934..3aa4da7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,14 +16,22 @@ on: jobs: release: - runs-on: ubuntu-latest permissions: contents: write issues: write pull-requests: write + id-token: write + runs-on: ubuntu-latest steps: - uses: nearform-actions/optic-release-automation-action@v4 with: + github-token: ${{ secrets.github_token }} + npm-token: >- + ${{ secrets[format('NPM_TOKEN_{0}', github.actor)] || + secrets.NPM_TOKEN }} + optic-token: >- + ${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] || + secrets.OPTIC_TOKEN }} semver: ${{ github.event.inputs.semver }} commit-message: 'chore: release {version}' - build-command: npm ci + provenance: true