build: update version to 0.2.0 #9
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Format, Test, Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24.3.0 | |
| cache: npm | |
| - name: Pin npm version | |
| run: npm i -g npm@11.4.2 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lockfile drift gate | |
| run: git diff --exit-code package-lock.json | |
| - name: Format gate | |
| run: npm run lint | |
| - name: Test | |
| run: npm run test -- --watch=false | |
| - name: Build package | |
| run: npm run build | |
| changelog-gate: | |
| name: Changelog gate | |
| if: ${{ github.event_name == 'pull_request' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Validate Unreleased update for code-impacting changes | |
| run: | | |
| bash .github/scripts/check_unreleased_update.sh \ | |
| "${{ github.event.pull_request.base.sha }}" \ | |
| "${{ github.event.pull_request.head.sha }}" |