mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Issue number: resolves # --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the current behavior? <!-- Please describe the current behavior that you are modifying. --> - Permissions not set as expected ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - Permissions are properly set throughout the hierarchy ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. -->
83 lines
2.1 KiB
YAML
83 lines
2.1 KiB
YAML
name: 'Release - Ionic Framework'
|
|
|
|
on:
|
|
schedule:
|
|
# Run every Monday-Friday
|
|
# at 6:00 UTC (6:00 am UTC)
|
|
- cron: '00 06 * * 1-5'
|
|
workflow_dispatch:
|
|
inputs:
|
|
release-type:
|
|
description: 'Which Ionic release workflow should run?'
|
|
required: true
|
|
type: choice
|
|
default: nightly
|
|
options:
|
|
- dev
|
|
- nightly
|
|
- production
|
|
version:
|
|
description: 'Which version should be published? (Only for production releases)'
|
|
required: false
|
|
type: choice
|
|
options:
|
|
- patch
|
|
- minor
|
|
- major
|
|
- prepatch
|
|
- preminor
|
|
- premajor
|
|
- prerelease
|
|
tag:
|
|
description: 'Which npm tag should this be published to? (Only for production releases)'
|
|
required: false
|
|
type: choice
|
|
default: latest
|
|
options:
|
|
- latest
|
|
- next
|
|
preid:
|
|
description: 'Which prerelease identifier should be used? (Only for production releases)'
|
|
required: false
|
|
type: choice
|
|
default: ''
|
|
options:
|
|
- ''
|
|
- alpha
|
|
- beta
|
|
- rc
|
|
- next
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
jobs:
|
|
run-nightly:
|
|
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.release-type == 'nightly') }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
uses: ./.github/workflows/nightly.yml
|
|
secrets: inherit
|
|
|
|
run-dev:
|
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.release-type == 'dev' }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
uses: ./.github/workflows/dev-build.yml
|
|
secrets: inherit
|
|
|
|
run-production:
|
|
if: ${{ github.event_name == 'workflow_dispatch' && inputs.release-type == 'production' }}
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
uses: ./.github/workflows/release.yml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{ inputs.version }}
|
|
tag: ${{ inputs.tag }}
|
|
preid: ${{ inputs.preid }}
|