chore(main): release 1.2.0 #29
Workflow file for this run
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: refresh release artifacts | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - release-please--branches--main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: release-artifacts-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify-generated-artifacts: | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.event.pull_request.head.ref, 'release-please--branches--') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| fetch-depth: 0 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| cache: true | |
| cache_dependency_path: frontend/pnpm-lock.yaml | |
| package_json_file: frontend/package.json | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".tool-versions" | |
| - name: Install frontend dependencies | |
| run: pnpm install --frozen-lockfile | |
| working-directory: frontend | |
| - name: Refresh OpenAPI artifacts | |
| run: | | |
| make openapi | |
| make openapi-client | |
| - name: Assert generated artifacts are current | |
| run: git diff --exit-code -- public/openapi.yaml frontend/src/api/generated | |
| refresh-generated-artifacts: | |
| if: github.event_name == 'push' && github.repository == 'html2rss/html2rss-web' && github.ref == 'refs/heads/release-please--branches--main' && github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| fetch-depth: 0 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| cache: true | |
| cache_dependency_path: frontend/pnpm-lock.yaml | |
| package_json_file: frontend/package.json | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: ".tool-versions" | |
| - name: Install frontend dependencies | |
| run: pnpm install --frozen-lockfile | |
| working-directory: frontend | |
| - name: Refresh OpenAPI artifacts | |
| run: | | |
| make openapi | |
| make openapi-client | |
| - name: Commit generated artifacts | |
| run: | | |
| if git diff --quiet -- public/openapi.yaml frontend/src/api/generated; then | |
| echo "Generated artifacts already up to date" | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add public/openapi.yaml frontend/src/api/generated | |
| git commit -m "chore: refresh release artifacts" | |
| git push |