ci: publish to npm from a GitHub release #3
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: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # The point of the matrix is the file layer: atomic rename, the | |
| # mkdir-based lock and the home directory all behave differently on | |
| # Windows, and that is exactly what this package leans on. | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node: ["20.11", "22", "24"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: node --test |