fix: accept a custom-field create response with no object field (#41) #31
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] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| jobs: | |
| release-please: | |
| name: Release PR | |
| runs-on: ubuntu-latest | |
| outputs: | |
| released: ${{ steps.release.outputs.release_created }} | |
| tag: ${{ steps.release.outputs.tag_name }} | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| publish: | |
| name: Publish to npm | |
| needs: release-please | |
| if: needs.release-please.outputs.released == 'true' | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout release tag | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ needs.release-please.outputs.tag }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: "1.3.11" | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| registry-url: "https://registry.npmjs.org" | |
| # Trusted publishing (OIDC) requires npm >= 11.5.1; Node 24 ships an older npm. | |
| - name: Upgrade npm for trusted publishing | |
| run: npm install -g npm@latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Check (lint + format + type check) | |
| run: bun run check | |
| - name: Run tests | |
| run: bun run test | |
| - name: Build | |
| run: bun run build | |
| # No NODE_AUTH_TOKEN: auth comes from OIDC trusted publishing. | |
| # Requires a trusted publisher configured on npmjs.com for this repo, | |
| # workflow (release.yml), and the "release" environment. | |
| - name: Publish | |
| run: npm pack && npm publish ./*.tgz --access public --provenance | |
| env: | |
| NPM_CONFIG_PROVENANCE: true |