Skip to content

refactor(proto): deprecate billing_id in transaction and invoice RPCs… #29

refactor(proto): deprecate billing_id in transaction and invoice RPCs…

refactor(proto): deprecate billing_id in transaction and invoice RPCs… #29

Workflow file for this run

name: Publish to NPM
on:
push:
branches:
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Lint protobuf files
run: buf lint
- name: Check breaking changes
run: buf breaking --against 'https://github.com/raystack/proton.git#branch=main'
if: github.ref != 'refs/heads/main'
publish:
runs-on: ubuntu-latest
needs: validate
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
working-directory: ./js
- name: Generate code
run: npm run build -- --hash=${{ github.sha }}
working-directory: ./js
- name: Publish
run: npm publish --access public
working-directory: ./js/dist
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}