mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
build(lerna): split release and next builds out into separate tasks (#24422)
This commit is contained in:
48
.github/workflows/pre-release.yml
vendored
Normal file
48
.github/workflows/pre-release.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: 'Ionic Pre-Release'
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
required: true
|
||||||
|
type: choice
|
||||||
|
description: Which version should be published?
|
||||||
|
options:
|
||||||
|
- prepatch
|
||||||
|
- preminor
|
||||||
|
- premajor
|
||||||
|
prefix:
|
||||||
|
required: true
|
||||||
|
type: choice
|
||||||
|
description: What kind of pre-release is this?
|
||||||
|
default: beta
|
||||||
|
options:
|
||||||
|
- alpha
|
||||||
|
- beta
|
||||||
|
- rc
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-ionic:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- name: Configure Identity
|
||||||
|
run: |
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
shell: bash
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci --no-package-lock && lerna bootstrap --ignore-scripts -- --legacy-peer-deps
|
||||||
|
shell: bash
|
||||||
|
- name: Prepare NPM Token
|
||||||
|
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
- name: Release
|
||||||
|
run: |
|
||||||
|
HUSKY_SKIP_HOOKS=1 lerna publish $(echo "${{ github.event.inputs.version }}") --no-verify-access --yes --force-publish='*' --dist-tag next --no-git-tag-version --no-push --skip-npm --preid $(echo "${{ github.events.inputs.prefix }}")
|
||||||
|
shell: bash
|
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 'Ionic Release'
|
name: 'Ionic Production Release'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -11,33 +11,28 @@ on:
|
|||||||
- patch
|
- patch
|
||||||
- minor
|
- minor
|
||||||
- major
|
- major
|
||||||
- prepatch
|
|
||||||
- preminor
|
|
||||||
- premajor
|
|
||||||
tag:
|
tag:
|
||||||
required: true
|
required: true
|
||||||
type: choice
|
type: choice
|
||||||
description: Which npm tag should this be published to?
|
description: Which npm tag should this be published to?
|
||||||
options:
|
options:
|
||||||
- latest
|
- latest
|
||||||
- next
|
- v5-lts
|
||||||
- dev
|
- v4-lts
|
||||||
prefix:
|
|
||||||
type: choice
|
|
||||||
description: For pre-releases, what kind of pre-release is this?
|
|
||||||
default: ''
|
|
||||||
options:
|
|
||||||
- alpha
|
|
||||||
- beta
|
|
||||||
- rc
|
|
||||||
jobs:
|
jobs:
|
||||||
dev-build:
|
build-ionic:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
- name: Configure Identity
|
||||||
|
run: |
|
||||||
|
git config user.name github-actions
|
||||||
|
git config user.email github-actions@github.com
|
||||||
|
shell: bash
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci --no-package-lock && lerna bootstrap --ignore-scripts -- --legacy-peer-deps
|
run: npm ci --no-package-lock && lerna bootstrap --ignore-scripts -- --legacy-peer-deps
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -48,5 +43,5 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- name: Release
|
- name: Release
|
||||||
run: |
|
run: |
|
||||||
HUSKY_SKIP_HOOKS=1 lerna publish $(echo "${{ github.event.inputs.version }}") --no-verify-access --yes --force-publish='*' --dist-tag $(echo "${{ github.events.inputs.tag }}") --no-git-tag-version --no-push --skip-npm --preid $(echo "${{ github.events.inputs.prefix }}")
|
HUSKY_SKIP_HOOKS=1 lerna publish $(echo "${{ github.event.inputs.version }}") --no-verify-access --yes --force-publish='*' --dist-tag $(echo "${{ github.event.inputs.tag }}") --no-git-tag-version --no-push --skip-npm
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Reference in New Issue
Block a user