Skip to content

Commit

Permalink
Update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
youngbryanyu authored Jan 17, 2024
1 parent 8871e5c commit 6014dda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:

# Verify new NPM version is updated during push and PR.
# Skips version number check step if there were code changes
verify-npm-version:
verify-version-and-changelog:
name: Verify Updated Version and Changelog (if code changed)
if: github.event_name == 'push' || github.event_name == 'pull_request'
needs: detect-code-changes
Expand Down Expand Up @@ -163,19 +163,19 @@ jobs:
name: changelog-changes-artifact
- name: Read Code Changes Flag From Artifact
run: |
echo "CHANGELOG_CHANGES=$(cat changelog_updated.txt)" >> $GITHUB_ENV
echo "CHANGELOG_UPDATED=$(cat changelog_updated.txt)" >> $GITHUB_ENV
- name: Check if changelog is updated
if: env.CODE_CHANGES == 'true' && env.CHANGELOG_UPDATED != 'true'
run: |
echo "Failure: Changelog must be updated for new releases."
echo "Failure: Changelog must be updated for new releases. Exiting..."
exit 1
# Publish to NPM if the event was 'push'.
# Runs the publish to NPM step only if there were code changes
publish-npm:
name: Publish to NPM (if code changed)
if: github.event_name == 'push'
needs: verify-npm-version
needs: verify-version-and-changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
release:
name: Create Release (if code changed)
if: github.event_name == 'push'
needs: verify-npm-version
needs: verify-version-and-changelog
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down

0 comments on commit 6014dda

Please sign in to comment.