Skip to content

Commit

Permalink
release: Push to NPM when GitHub releases are created.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 638412147
  • Loading branch information
Nate Schmitz authored and Google Earth Engine Authors committed May 29, 2024
1 parent 16d97a8 commit 21c3707
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NPM
on:
release:
types: [published]

jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
cd javascript/
npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_API_TOKEN}}

0 comments on commit 21c3707

Please sign in to comment.