diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml new file mode 100644 index 0000000000..e6b75e472f --- /dev/null +++ b/.github/workflows/dev-build.yml @@ -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 }} diff --git a/.scripts/release-dev.js b/.scripts/release-dev.js index a5812596ae..af24835296 100644 --- a/.scripts/release-dev.js +++ b/.scripts/release-dev.js @@ -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 = [ {