From a0e88ea65f44091352b5dd8aea98c0392899d700 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 22 Mar 2023 16:32:11 -0400 Subject: [PATCH] chore(ci): remove unused workflows (#27000) --- .github/workflows/pre-release.yml | 48 ------- .github/workflows/release-ionic.yml | 212 ---------------------------- 2 files changed, 260 deletions(-) delete mode 100644 .github/workflows/pre-release.yml delete mode 100644 .github/workflows/release-ionic.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-ionic.yml b/.github/workflows/release-ionic.yml deleted file mode 100644 index e29dfb83c6..0000000000 --- a/.github/workflows/release-ionic.yml +++ /dev/null @@ -1,212 +0,0 @@ -name: 'Release Ionic' - -on: - workflow_call: - inputs: - version: - description: 'The type of version to release.' - type: string - required: true - tag: - description: 'The tag to publish to NPM.' - type: string - required: true - secrets: - NPM_TOKEN: - required: true - -jobs: - release-core: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/core' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'core' - token: ${{ secrets.NPM_TOKEN }} - - name: Cache Built @ionic/core - uses: ./.github/workflows/actions/upload-archive - with: - name: ionic-core - output: core/CoreBuild.zip - paths: core/dist core/components core/css core/hydrate core/loader core/src/components.d.ts - - name: Cache Built @ionic/docs - uses: ./.github/workflows/actions/upload-archive - with: - name: ionic-docs - output: docs/DocsBuild.zip - paths: docs/core.json docs/core.d.ts - - release-docs: - needs: [release-core] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/docs built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-docs - path: ./docs - filename: DocsBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/docs' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'docs' - token: ${{ secrets.NPM_TOKEN }} - - release-angular: - needs: [release-core] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/angular' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'angular' - folder: './dist' - token: ${{ secrets.NPM_TOKEN }} - - name: Cache Built @ionic/angular - uses: ./.github/workflows/actions/upload-archive - with: - name: ionic-angular - output: ./angular/AngularBuild.zip - paths: ./angular/dist - - release-react: - needs: [release-core] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/react' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'packages/react' - token: ${{ secrets.NPM_TOKEN }} - - name: Cache Built @ionic/react - uses: ./.github/workflows/actions/upload-archive - with: - name: ionic-react - output: packages/react/ReactBuild.zip - paths: packages/react/dist packages/react/css - - release-vue: - needs: [release-core] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/vue' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'packages/vue' - token: ${{ secrets.NPM_TOKEN }} - - name: Cache Built @ionic/vue - uses: ./.github/workflows/actions/upload-archive - with: - name: ionic-vue - output: packages/vue/VueBuild.zip - paths: packages/vue/dist packages/vue/css - - release-angular-server: - needs: [release-angular] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - name: Restore @ionic/angular built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-angular - path: ./angular - filename: AngularBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/angular-server' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'packages/angular-server' - folder: './dist' - token: ${{ secrets.NPM_TOKEN }} - - release-react-router: - needs: [release-react] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - name: Restore @ionic/react built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-react - path: ./packages/react - filename: ReactBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/react-router' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'packages/react-router' - token: ${{ secrets.NPM_TOKEN }} - - release-vue-router: - needs: [release-vue] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Restore @ionic/core built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-core - path: ./core - filename: CoreBuild.zip - - name: Restore @ionic/vue built cache - uses: ./.github/workflows/actions/download-archive - with: - name: ionic-vue - path: ./packages/vue - filename: VueBuild.zip - - uses: ./.github/workflows/actions/publish-npm - with: - scope: '@ionic/vue-router' - tag: ${{ inputs.tag }} - version: ${{ inputs.version }} - working-directory: 'packages/vue-router' - token: ${{ secrets.NPM_TOKEN }}