From 9057f4d4bf3500d36e72744202bb35c17fcd9b17 Mon Sep 17 00:00:00 2001 From: Biraj Pantha <100142251+bp289@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:48:16 +0100 Subject: [PATCH] Update release.yml for npm release --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99e6293..3b9076a 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: semver: ${{ github.event.inputs.semver }} commit-message: 'chore: release {version}' + npm-token: >- + ${{ secrets[format('NPM_TOKEN_{0}', github.actor)] || + secrets.NPM_TOKEN }} + optic-token: >- + ${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] || + secrets.OPTIC_TOKEN }} build-command: npm ci + provenance: true