Skip to content

feat: fastpool with atomics #88

feat: fastpool with atomics

feat: fastpool with atomics #88

Workflow file for this run

name: CI
permissions:
contents: write
id-token: write
'on':
push:
branches:
- main
tags:
- '*'
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
- docs/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
- name: Install dependencies
run: yarn install
- name: Prettier format check
run: yarn lint
test:
name: Test on Node ${{ matrix.node }} - ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: ['20', '22', '24']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- lint
- test
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 24
cache: yarn
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}