Skip to content

Commit

Permalink
Merge 7097419 into c5ed604
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmorrison authored May 5, 2023
2 parents c5ed604 + 7097419 commit 326527c
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@

name: release

on:
workflow_dispatch:
inputs:
semver:
description: The semver to use
required: true
default: patch
type: choice
options:
- patch
- minor
- major
pull_request:
types: [closed]

jobs:
release:
name: release
on:
workflow_dispatch:
inputs:
semver:
description: The semver to use
required: true
default: patch
type: choice
options:
- patch
- minor
- major
pull_request:
types: [closed]

jobs:
release:
permissions:
pull-requests: write
contents: 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 }}
issues: write
pull-requests: 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}'

0 comments on commit 326527c

Please sign in to comment.