From 07d6c5834d1043737b8c9084204e93388ecbf48c Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 25 Jan 2023 14:51:03 +0000 Subject: [PATCH] chore(ci): add pre-release scripts --- .github/workflows/pre-release.yml | 48 ------------------------------- .github/workflows/release.yml | 4 +++ 2 files changed, 4 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml deleted file mode 100644 index 735697d71b..0000000000 --- a/.github/workflows/pre-release.yml +++ /dev/null @@ -1,48 +0,0 @@ -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@v3 - - uses: actions/setup-node@v3 - 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c4b83628e..be812725ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,12 +11,16 @@ on: - patch - minor - major + - prepatch + - preminor + - premajor tag: required: true type: choice description: Which npm tag should this be published to? options: - latest + - next - v5-lts - v4-lts