Release 1.4.0 #259
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: Source CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: source-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| PUPPETEER_SKIP_DOWNLOAD: "1" | |
| jobs: | |
| verify: | |
| name: Cheap source gate | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| - name: Install exact dependencies | |
| run: npm ci | |
| - name: Diff check | |
| run: git diff --check | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Build | |
| run: npm run build | |
| - name: Full test suite | |
| run: npm test | |
| - name: Record successful source identity | |
| if: github.event_name != 'pull_request' | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| version="$(node -p 'require("./package.json").version')" | |
| commit="$(git rev-parse HEAD)" | |
| mkdir -p dist/source-ci | |
| printf 'CI passed for 1Helm %s at %s\n' "$version" "$commit" > dist/source-ci/source-ci.txt | |
| node scripts/release-stage-evidence.mjs create source-ci "$version" "$commit" \ | |
| dist/source-ci/source-ci-evidence.json dist/source-ci/source-ci.txt | |
| - name: Retain CI proof | |
| if: github.event_name != 'pull_request' | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 | |
| with: | |
| name: source-ci-${{ github.sha }} | |
| path: dist/source-ci | |
| if-no-files-found: error | |
| retention-days: 90 |