mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
40 lines
963 B
YAML
40 lines
963 B
YAML
name: 'Ionicons Production Release'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
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
|
|
|
|
jobs:
|
|
release-ionicons:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.IONITRON_TOKEN }}
|
|
- name: Publish to NPM
|
|
uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
working-directory: './'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
createRelease: true
|
|
ghToken: ${{ secrets.IONITRON_TOKEN }}
|