πŸ“¦ ionic-team / ionic-framework

πŸ“„ action.yml Β· 37 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37name: 'Build Ionic Core'
description: 'Build Ionic Core'
inputs:
  ionicons-version:
    description: 'The NPM tag of ionicons to install.'
    type: string
    required: false
runs:
  using: 'composite'
  steps:
    - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
    - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
      with:
        node-version: 24.x
    - name: πŸ•ΈοΈ Install Dependencies
      run: npm install
      working-directory: ./core
      shell: bash
    # If an Ionicons version was specified install that.
    # Otherwise just use the version defined in the package.json.
    - name: πŸ“¦ Install Ionicons Version
      if: inputs.ionicons-version != ''
      run: npm install ionicons@${{ inputs.ionicons-version }}
      working-directory: ./core
      shell: bash
    - name: πŸ—οΈ Build Core
      run: npm run build -- --ci
      working-directory: ./core
      shell: bash
    - uses: ./.github/workflows/actions/upload-archive
      with:
        name: ionic-core
        output: core/CoreBuild.zip
        # Include generated proxy files from Stencil output targets so
        # framework builds can detect when they need to be updated
        paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts core/api.txt packages/angular/src/directives/proxies.ts packages/angular/src/directives/proxies-list.ts packages/angular/standalone/src/directives/proxies.ts packages/vue/src/proxies.ts packages/react/src/components/proxies.ts packages/react/src/components/inner-proxies.ts packages/react/src/components/routing-proxies.ts