fix(pds): correct firehose event format for relay compatibility (#12) #17
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: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: write | |
| repository-projects: write | |
| steps: | |
| - uses: navikt/github-app-token-generator@v1 | |
| id: get-token | |
| with: | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| app-id: ${{ secrets.APP_ID }} | |
| - name: Checkout Repo | |
| uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v3 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: latest | |
| cache: "pnpm" | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Build Packages | |
| run: pnpm run build | |
| - run: pnpm run check | |
| # Update npm to latest version so that OIDC works correctly | |
| - name: Update npm | |
| run: npm install -g npm@latest | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm changeset version | |
| publish: pnpm changeset publish | |
| commit: "ci: release" | |
| title: "ci: release" | |
| env: | |
| GITHUB_TOKEN: ${{ steps.get-token.outputs.token }} |