From a915bfa8d0cb405d326194836ff77b4ed8cdbd54 Mon Sep 17 00:00:00 2001 From: Dave New Date: Wed, 25 Oct 2023 16:15:36 +0200 Subject: [PATCH] fix: renamed and removing triggers (#1257) --- .../{NEW_release_cli.yml => NEW_publish_cli.yml} | 4 ++-- ...packages.yml => NEW_publish_npm_packages.yml} | 16 ++++------------ ...github_release.yml => OLD_github_release.yml} | 4 ++-- ...new_prerelease.yml => OLD_new_prerelease.yml} | 10 +++++----- .../{npm_release.yml => OLD_npm_release.yml} | 4 ++-- .../{pre_release.yml => OLD_pre_release.yml} | 4 ++-- ..._release.yml => OLD_prepare_keel_release.yml} | 16 +--------------- ..._release.yml => OLD_publish_keel_release.yml} | 8 +------- 8 files changed, 19 insertions(+), 47 deletions(-) rename .github/workflows/{NEW_release_cli.yml => NEW_publish_cli.yml} (95%) rename .github/workflows/{NEW_release_packages.yml => NEW_publish_npm_packages.yml} (79%) rename .github/workflows/{github_release.yml => OLD_github_release.yml} (99%) rename .github/workflows/{new_prerelease.yml => OLD_new_prerelease.yml} (93%) rename .github/workflows/{npm_release.yml => OLD_npm_release.yml} (98%) rename .github/workflows/{pre_release.yml => OLD_pre_release.yml} (97%) rename .github/workflows/{prepare_keel_release.yml => OLD_prepare_keel_release.yml} (85%) rename .github/workflows/{publish_keel_release.yml => OLD_publish_keel_release.yml} (90%) diff --git a/.github/workflows/NEW_release_cli.yml b/.github/workflows/NEW_publish_cli.yml similarity index 95% rename from .github/workflows/NEW_release_cli.yml rename to .github/workflows/NEW_publish_cli.yml index cf3aec25f..a57b6af63 100644 --- a/.github/workflows/NEW_release_cli.yml +++ b/.github/workflows/NEW_publish_cli.yml @@ -1,10 +1,10 @@ -name: New Release CLI +name: Release CLI on: workflow_dispatch: inputs: version: - description: "Keel version (tag)" + description: "Keel version to publish (tag)" required: true type: string isPrerelease: diff --git a/.github/workflows/NEW_release_packages.yml b/.github/workflows/NEW_publish_npm_packages.yml similarity index 79% rename from .github/workflows/NEW_release_packages.yml rename to .github/workflows/NEW_publish_npm_packages.yml index b445c86bc..fdda71015 100644 --- a/.github/workflows/NEW_release_packages.yml +++ b/.github/workflows/NEW_publish_npm_packages.yml @@ -1,10 +1,10 @@ -name: New Release Packages +name: Publish NPM Packages on: workflow_dispatch: inputs: version: - description: "Keel version (tag)" + description: "Keel version to publish (tag)" required: true type: string publishTag: @@ -52,24 +52,16 @@ jobs: fetch-depth: 0 - name: Install Go deps - if: inputs.publishTag != 'latest' run: go mod download - name: Generate wasm binary - if: ${{ matrix.package == 'wasm' && inputs.publishTag != 'latest' }} + if: ${{ matrix.package == 'wasm' }} run: make wasm - name: Install ${{ matrix.package }} publish dependencies working-directory: ./packages/${{ matrix.package }} run: pnpm install --frozen-lockfile - - name: "Update NPM version ${{ matrix.package }}" - if: inputs.publishTag != 'latest' - uses: reedyuk/npm-version@1.2.1 - with: - version: ${{ inputs.version }} - package: ./packages/${{ matrix.package }} - - name: NPM Publish ${{ matrix.package }} uses: JS-DevTools/npm-publish@v2 with: @@ -77,7 +69,7 @@ jobs: tag: ${{ inputs.publishTag }} package: ./packages/${{ matrix.package }} dry-run: ${{ inputs.dryRun }} - strategy: upgrade + strategy: all ignore-scripts: false env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/github_release.yml b/.github/workflows/OLD_github_release.yml similarity index 99% rename from .github/workflows/github_release.yml rename to .github/workflows/OLD_github_release.yml index 27c4e17b1..a60b4c794 100644 --- a/.github/workflows/github_release.yml +++ b/.github/workflows/OLD_github_release.yml @@ -1,7 +1,7 @@ -name: Create Release +name: OLD Create Release on: - workflow_call: + workflow_dispatch: inputs: branch: description: "The branch to run the release on" diff --git a/.github/workflows/new_prerelease.yml b/.github/workflows/OLD_new_prerelease.yml similarity index 93% rename from .github/workflows/new_prerelease.yml rename to .github/workflows/OLD_new_prerelease.yml index a9f7ba737..ec1f28d67 100644 --- a/.github/workflows/new_prerelease.yml +++ b/.github/workflows/OLD_new_prerelease.yml @@ -1,11 +1,11 @@ name: Initiate Pre-Release on: - push: - branches: - - main - tags-ignore: - - "*" + #push: + # branches: + # - main + # tags-ignore: + # - "*" workflow_dispatch: jobs: diff --git a/.github/workflows/npm_release.yml b/.github/workflows/OLD_npm_release.yml similarity index 98% rename from .github/workflows/npm_release.yml rename to .github/workflows/OLD_npm_release.yml index 5079a2222..12e5d5c3c 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/OLD_npm_release.yml @@ -1,7 +1,7 @@ -name: NPM Release +name: OLD NPM Release on: - workflow_call: + workflow_dispatch: inputs: version: description: "Release Version" diff --git a/.github/workflows/pre_release.yml b/.github/workflows/OLD_pre_release.yml similarity index 97% rename from .github/workflows/pre_release.yml rename to .github/workflows/OLD_pre_release.yml index 71ceb55c9..0aec29ff5 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/OLD_pre_release.yml @@ -1,7 +1,7 @@ -name: Make Pre Release +name: OLD Make Pre Release on: - workflow_call: + workflow_dispatch: inputs: versionFormat: description: "Ref of where the release should be marked" diff --git a/.github/workflows/prepare_keel_release.yml b/.github/workflows/OLD_prepare_keel_release.yml similarity index 85% rename from .github/workflows/prepare_keel_release.yml rename to .github/workflows/OLD_prepare_keel_release.yml index fa708ae76..1150d213c 100644 --- a/.github/workflows/prepare_keel_release.yml +++ b/.github/workflows/OLD_prepare_keel_release.yml @@ -1,4 +1,4 @@ -name: Prepare Keel Release +name: OLD Prepare Keel Release on: workflow_dispatch: @@ -16,20 +16,6 @@ on: required: false type: string default: "main" - workflow_call: - inputs: - backendBranch: - description: "The backend branch that triggered this release" - required: true - type: string - preReleaseVersion: - description: "Pre Release Version to release" - required: true - type: string - releaseNotesUrl: - description: "URL to release notes for version" - required: false - type: string jobs: create_branch: diff --git a/.github/workflows/publish_keel_release.yml b/.github/workflows/OLD_publish_keel_release.yml similarity index 90% rename from .github/workflows/publish_keel_release.yml rename to .github/workflows/OLD_publish_keel_release.yml index d6b8048fc..d8f9d1373 100644 --- a/.github/workflows/publish_keel_release.yml +++ b/.github/workflows/OLD_publish_keel_release.yml @@ -1,4 +1,4 @@ -name: Publish Keel Release +name: OLD Publish Keel Release on: workflow_dispatch: @@ -7,12 +7,6 @@ on: description: "Release Version" required: true type: string - workflow_call: - inputs: - version: - description: "Release Version" - required: true - type: string jobs: setup: