Skip to content

Commit

Permalink
build: avoid unnecessary steps in release-please workflow (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed May 8, 2024
1 parent 8b80e81 commit 82fd8db
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,28 @@ jobs:
token: ${{secrets.GITHUB_TOKEN}}

# Output which releases were created
- run: echo "A release was created."
if: ${{ steps.release.outputs.releases_created }}
- name: Output release info
run: |
echo "releases_created:" ${{ steps.release.outputs.releases_created }}
echo "packages/compat--release_created:" ${{ steps.release.outputs['packages/compat--release_created'] }}
echo "packages/object-schema--release_created:" ${{ steps.release.outputs['packages/object-schema--release_created'] }}
echo "packages/config-array--release_created" ${{ steps.release.outputs['packages/config-array--release_created'] }}
# Check to see if we need to do any releases and if so check out the repo
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created == 'true' }}

# Node.js release
- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created == 'true' }}
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"

- run: |
npm install
npm run build
if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created == 'true' }}
#-----------------------------------------------------------------------------
# NOTE: Packages are released in order of dependency. The packages with the
Expand Down

0 comments on commit 82fd8db

Please sign in to comment.