From 94e68233c510441f83c50df1ce93d9da40c557e1 Mon Sep 17 00:00:00 2001 From: Tiago Barbosa Date: Mon, 6 Nov 2023 15:19:06 +0000 Subject: [PATCH] chore(release) Updating github action for release process (#33) * chore(deps): :arrow_up: bumping up package versions to match v0.6.6 of backstage plugin in source * ci: :green_heart: formatting action for release created * Revert "chore(deps): bump browserify-sign from 4.2.1 to 4.2.2" * build(yarn): :green_heart: fixing yarn conflict fix yarn conflict that is preventing merge due to main branch lock * build: :green_heart: revert unstable backstage package and its dependencies revert unstable backstage package and its dependencies * ci(release): changed release publishing to a manual process changed release publishing to a manual process --- .github/workflows/on_release_created.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/on_release_created.yml b/.github/workflows/on_release_created.yml index 6a88fa8..3807bd1 100644 --- a/.github/workflows/on_release_created.yml +++ b/.github/workflows/on_release_created.yml @@ -1,8 +1,17 @@ name: Release on: - release: - types: [created] + workflow_dispatch: + inputs: + pre-release: + description: 'Is this a pre-release version?' + required: true + default: true + type: boolean + version: + description: 'Test scenario tags' + required: true + type: string jobs: # publish to npm with the tag "beta" if the release version contains "beta" otherwise publish with the tag "latest" @@ -35,10 +44,10 @@ jobs: uses: datamonsters/replace-action@v2 with: files: ./package.json - replacements: NPM_PACKAGE_VERSION=${{ github.event.release.tag_name}} + replacements: NPM_PACKAGE_VERSION=${{ inputs.version }} - name: Publish beta version to NPM (uses package.json version) - if: ${{ github.event.release.prerelease }} + if: ${{ inputs.pre-release }} run: yarn npm publish --tag next --access public - name: Publish latest version to NPM (uses package.json version) - if: ${{ !github.event.release.prerelease }} + if: ${{ !inputs.pre-release }} run: yarn npm publish --tag latest --access public