fix: enforce charge and session client chain policies (#888) #876
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: Main | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| name: Verify | |
| permissions: | |
| contents: read | |
| uses: ./.github/workflows/verify.yml | |
| secrets: | |
| VITE_STRIPE_SECRET_KEY: ${{ secrets.VITE_STRIPE_SECRET_KEY }} | |
| VITE_STRIPE_PUBLIC_KEY: ${{ secrets.VITE_STRIPE_PUBLIC_KEY }} | |
| changesets: | |
| name: Changesets | |
| if: github.repository == 'wevm/mppx' | |
| needs: verify | |
| outputs: | |
| hasChangesets: ${{ steps.changesets.outputs.has-changesets }} | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Build | |
| run: pnpm build | |
| - name: PR or publish | |
| id: changesets | |
| uses: changesets/action@8488615a623b1b9c987934bb89eae8af6a946ac1 # v2.1.1 | |
| with: | |
| pr-title: 'chore: version packages' | |
| commit-message: 'chore: version packages' | |
| publish-script: pnpm run changeset:publish | |
| version-script: pnpm run changeset:version | |
| snapshot: | |
| name: Snapshot | |
| if: github.repository == 'wevm/mppx' && needs.changesets.outputs.hasChangesets == 'true' | |
| needs: [verify, changesets] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: Publish main snapshot | |
| run: | | |
| pnpm changeset version --snapshot main | |
| pnpm build | |
| pnpm changeset:publish:main |