mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +08:00
build(dev-build): add GitHub actions for dev builds (#24193)
This commit is contained in:
18
.github/workflows/dev-build.yml
vendored
Normal file
18
.github/workflows/dev-build.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: 'Ionic Dev Build'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
dev-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 15.x
|
||||
- name: Create Dev Build
|
||||
run: npm run release.dev -- --skip-prompt
|
||||
shell: bash
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
@ -57,6 +57,11 @@ async function main() {
|
||||
}
|
||||
|
||||
async function askDevVersion(devVersion) {
|
||||
const skipPrompt = process.argv.find(arg => arg === '--skip-prompt');
|
||||
if (skipPrompt) {
|
||||
console.log(`\n--skip-prompt was passed. Skipping dev build prompt.`)
|
||||
return true;
|
||||
}
|
||||
|
||||
const prompts = [
|
||||
{
|
||||
|
Reference in New Issue
Block a user