Skip to content

Commit

Permalink
add: release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Mar 18, 2022
1 parent 8a65db9 commit 80d6a32
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: release

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

jobs:
call-reuseable-workflow:
uses: fastify/workflows/.github/workflows/release-package@automated-release
with:
semver: ${{ github.event.inputs.semver }}
tag: ${{ github.event.inputs.commit-message }}
secrets:
ORG_NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
ORG_MEMBER_OPTIC_TOKEN: ${{ secrets[format('ORG_OPTIC_TOKEN_{0}', github.actor)] }}

0 comments on commit 80d6a32

Please sign in to comment.