Skip to content

Commit

Permalink
Make publish workflow easier to reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Jul 21, 2023
1 parent a55c150 commit 610b296
Showing 1 changed file with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ name: NPM Publish
run-name: ${{ inputs.description }} (${{ inputs.release_type }}) release by @${{ github.actor }}

on:
workflow_call:
inputs:
description:
description: Description
required: false
type: string
release_type:
description: Release Type
required: true
default: patch
type: string
secrets:
npm_token:
required: true
GITHUB_TOKEN:
required: true
workflow_dispatch:
inputs:
description:
Expand All @@ -22,11 +38,7 @@ on:
- major

jobs:
test:
uses: ./.github/workflows/test.yml

publish-to-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 610b296

Please sign in to comment.