Skip to content

Commit

Permalink
chore(release) Updating github action for release process (#33)
Browse files Browse the repository at this point in the history
* chore(deps): ⬆️ bumping up package versions to match v0.6.6 of backstage plugin in source

* ci: 💚 formatting action for release created

* Revert "chore(deps): bump browserify-sign from 4.2.1 to 4.2.2"

* build(yarn): 💚 fixing yarn conflict

fix yarn conflict that is preventing merge due to main branch lock

* build: 💚 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
  • Loading branch information
t1agob authored Nov 6, 2023
1 parent 4d00dd7 commit 94e6823
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/on_release_created.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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

0 comments on commit 94e6823

Please sign in to comment.