fix(nanoviews): show the for_ placeholder when there is no array at all
#455
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: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Force specific version | |
| type: string | |
| as: | |
| description: Release type | |
| type: choice | |
| options: | |
| - '' | |
| - major | |
| - minor | |
| - patch | |
| - prerelease | |
| prerelease: | |
| description: Pre-release identifier (e.g. alpha, beta) | |
| type: string | |
| issue_comment: | |
| types: [created, deleted] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| name: Context check | |
| outputs: | |
| continue: ${{ steps.check.outputs.continue }} | |
| workflow: ${{ steps.check.outputs.workflow }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v7 | |
| - name: Context check | |
| id: check | |
| uses: trigensoftware/simple-release-action@latest | |
| with: | |
| workflow: check | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| pull-request: | |
| runs-on: ubuntu-latest | |
| name: Pull request | |
| needs: check | |
| if: needs.check.outputs.workflow == 'pull-request' | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v7 | |
| - name: Create or update pull request | |
| uses: trigensoftware/simple-release-action@latest | |
| with: | |
| workflow: pull-request | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| bump-version: ${{ inputs.version }} | |
| bump-as: ${{ inputs.as }} | |
| bump-prerelease: ${{ inputs.prerelease }} | |
| release: | |
| runs-on: ubuntu-latest | |
| name: Release | |
| needs: check | |
| if: needs.check.outputs.workflow == 'release' | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v7 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Release | |
| uses: trigensoftware/simple-release-action@latest | |
| with: | |
| workflow: release | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| npm-token: ${{ secrets.NPM_TOKEN }} |