Skip to content

Commit

Permalink
GA Workflow: publish javascript clients
Browse files Browse the repository at this point in the history
* unfortunately, there's no nice way to put this workflow inside the
  /clients/javascript directory itself, so we have to use prefixes
  to namespace it.
  • Loading branch information
deobald committed Feb 2, 2024
1 parent a91c248 commit bf54f06
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/clients-javascript-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish JavaScript Client
on:
push:
tags:
- '*'

jobs:
build:
name: Publish package to NPM
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- run: npm ci
- run: npm publish --provenance --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bf54f06

Please sign in to comment.