Skip to content

Commit

Permalink
publish-to-npm: Prevent NPM publish jobs from running on prereleases.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 659988926
  • Loading branch information
Nate Schmitz authored and Google Earth Engine Authors committed Aug 6, 2024
1 parent afb7b1c commit a5420ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
smoke-test:
if: "!github.event.release.prerelease" # Only run if not a prerelease.
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -32,6 +33,7 @@ jobs:
EE_ACCESS_TOKEN: ${{ steps.auth.outputs.access_token }}
publish-npm:
if: "!github.event.release.prerelease" # Only run if not a prerelease.
needs: smoke-test
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit a5420ab

Please sign in to comment.