refactor(proto): deprecate billing_id in transaction and invoice RPCs… #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}} |