Skip to content

Commit

Permalink
Update release.yml for npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
bp289 authored Oct 18, 2023
1 parent 2d4cd0d commit 9057f4d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9057f4d

Please sign in to comment.