Update dependency @babel/core to v7.29.0 #800
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: Node.js CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| CI: 'true' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20, 22] | |
| name: Build & Test (Node v${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Cache browsers | |
| id: browser_cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: '~/.cache/ms-playwright' | |
| key: chromium-${{ runner.os }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm playwright install --with-deps | |
| if: steps.browser_cache.outputs.cache-hit != 'true' | |
| - run: pnpm build | |
| - run: pnpm lint | |
| - run: pnpm test | |
| env: | |
| CHOKIDAR_USEPOLLING: '1' | |
| TSC_WATCHFILE: 'DynamicPriorityPolling' | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: test-output-${{ matrix.node-version }} | |
| path: '**/test-results/**/*.png' | |
| release: | |
| needs: [build] | |
| # prevents this action from running on forks | |
| if: github.repository == 'jgoz/esbuild-plugins' && github.event_name == 'push' | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Needed for OIDC | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: 'package.json' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' | |
| - run: pnpm build | |
| - name: Update npm for OIDC publishing | |
| run: npm install -g npm@latest | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm release | |
| createGithubReleases: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |