mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Issue number: N/A
---------
<!-- 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. -->
`@ionic/angular-server` has a dependency on `@ionic/core` not
`@ionic/angular` (see
1f06be4a31/packages/angular-server/package.json).
As a result, once `@ionic/core` is built there is no reason for
`@ionic/angular-server` to also wait for `@ionic/angular` to build
before it can build.
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- `@ionic/angular-server` now waits for `@ionic/core` to build instead
of `@ionic/angular`
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->
## Other information
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
Dev build sample run:
https://github.com/ionic-team/ionic-framework/actions/runs/5414097033
218 lines
6.4 KiB
YAML
218 lines
6.4 KiB
YAML
name: 'Release Ionic'
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
version:
|
|
description: 'The type of version to release.'
|
|
type: string
|
|
required: true
|
|
tag:
|
|
description: 'The tag to publish to NPM.'
|
|
type: string
|
|
required: true
|
|
preid:
|
|
description: 'The prerelease identifier used when doing a prerelease.'
|
|
type: string
|
|
secrets:
|
|
NPM_TOKEN:
|
|
required: true
|
|
|
|
jobs:
|
|
release-core:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/core'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'core'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
- name: Cache Built @ionic/core
|
|
uses: ./.github/workflows/actions/upload-archive
|
|
with:
|
|
name: ionic-core
|
|
output: core/CoreBuild.zip
|
|
paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts
|
|
- name: Cache Built @ionic/docs
|
|
uses: ./.github/workflows/actions/upload-archive
|
|
with:
|
|
name: ionic-docs
|
|
output: docs/DocsBuild.zip
|
|
paths: docs/core.json docs/core.d.ts
|
|
|
|
release-docs:
|
|
needs: [release-core]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/docs built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-docs
|
|
path: ./docs
|
|
filename: DocsBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/docs'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'docs'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
release-angular:
|
|
needs: [release-core]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/angular'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'angular'
|
|
folder: './dist'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
- name: Cache Built @ionic/angular
|
|
uses: ./.github/workflows/actions/upload-archive
|
|
with:
|
|
name: ionic-angular
|
|
output: ./angular/AngularBuild.zip
|
|
paths: ./angular/dist
|
|
|
|
release-react:
|
|
needs: [release-core]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/react'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'packages/react'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
- name: Cache Built @ionic/react
|
|
uses: ./.github/workflows/actions/upload-archive
|
|
with:
|
|
name: ionic-react
|
|
output: packages/react/ReactBuild.zip
|
|
paths: packages/react/dist packages/react/css
|
|
|
|
release-vue:
|
|
needs: [release-core]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/vue'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'packages/vue'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
- name: Cache Built @ionic/vue
|
|
uses: ./.github/workflows/actions/upload-archive
|
|
with:
|
|
name: ionic-vue
|
|
output: packages/vue/VueBuild.zip
|
|
paths: packages/vue/dist packages/vue/css
|
|
|
|
release-angular-server:
|
|
needs: [release-core]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/angular-server'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'packages/angular-server'
|
|
folder: './dist'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
release-react-router:
|
|
needs: [release-react]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- name: Restore @ionic/react built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-react
|
|
path: ./packages/react
|
|
filename: ReactBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/react-router'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'packages/react-router'
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
release-vue-router:
|
|
needs: [release-vue]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Restore @ionic/core built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-core
|
|
path: ./core
|
|
filename: CoreBuild.zip
|
|
- name: Restore @ionic/vue built cache
|
|
uses: ./.github/workflows/actions/download-archive
|
|
with:
|
|
name: ionic-vue
|
|
path: ./packages/vue
|
|
filename: VueBuild.zip
|
|
- uses: ./.github/workflows/actions/publish-npm
|
|
with:
|
|
scope: '@ionic/vue-router'
|
|
tag: ${{ inputs.tag }}
|
|
version: ${{ inputs.version }}
|
|
preid: ${{ inputs.preid }}
|
|
working-directory: 'packages/vue-router'
|
|
token: ${{ secrets.NPM_TOKEN }}
|