Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Ionicons Dev Build'
name: 'Dev Release'

on:
workflow_dispatch:
workflow_call:

jobs:
create-dev-hash:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
name: 'Ionicons Production Release'
name: 'Production Release'

on:
workflow_dispatch:
workflow_call:
inputs:
version:
required: true
type: choice
description: Which version should be published?
options:
- patch
- minor
- major
tag:
required: true
type: choice
description: Which npm tag should this be published to?
options:
- latest
required: false
type: string
description: npm version (major, minor, or patch)

jobs:
release-ionicons:
Expand All @@ -31,7 +21,7 @@ jobs:
- name: Publish to NPM
uses: ./.github/workflows/actions/publish-npm
with:
tag: ${{ inputs.tag }}
tag: latest
version: ${{ inputs.version }}
working-directory: './'
token: ${{ secrets.NPM_TOKEN }}
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release-orchestrator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 'Release Orchestrator'

on:
workflow_dispatch:
inputs:
release-type:
description: 'Release type'
required: true
type: choice
options:
- dev
- production
version:
description: 'Version for production releases'
required: false
type: choice
options:
- patch
- minor
- major

Comment thread
OS-jacobbell marked this conversation as resolved.
jobs:
run-dev:
if: ${{ inputs.release-type == 'dev' }}
uses: ./.github/workflows/dev-release.yml
secrets: inherit

run-production:
if: ${{ inputs.release-type == 'production' }}
uses: ./.github/workflows/production-release.yml
secrets: inherit
with:
version: ${{ inputs.version }}
Comment thread
OS-jacobbell marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Ionicons Build'
name: 'Validation'

on:
pull_request:
Expand Down