Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.4.0 #68

Merged
merged 8 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,37 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/checkout@v3
- run: npm ci --ignore-scripts --no-audit --no-save
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: npx eslint --no-error-on-unmatched-pattern --max-warnings=0
- run: npx prettier --loglevel=warn --check .
- run: node ./node-pre-gyp.js --custom-rebuild
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js
- run: node --expose-gc ./scripts/test-memory-leaks.js

ci:
needs: test
strategy:
matrix:
node-version: ["16.14.0", "18.1.0", "20.9.0", "21.1.0"]
os: [ubuntu-latest, macos-latest, windows-2019]
node-version: ["16.14.0", "18.1.0", "20.9.0", "21.1.0", "22.8.0"]
os: [ubuntu-latest, macos-13, macos-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v3
- run: npm install --ignore-scripts --no-audit --no-save
- run: node ./node-pre-gyp.js --custom-rebuild
- run: node ./scripts/test.js --notypecheck
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js
37 changes: 37 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to NPM

# Only allows manual triggering
on:
workflow_dispatch:
inputs:
confirmation:
description: "Are you sure you want to publish to NPM?"
required: true
default: "no"
type: choice
options:
- yes
- no

jobs:
npm-publish:
name: npm-publish
if: github.event.inputs.confirmation == 'yes'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: publish
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
- run: npm install --exact --no-audit --no-save
- run: node ./scripts/test.js
- run: node --expose-gc ./scripts/test-memory-leaks.js
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
46 changes: 28 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,38 @@ jobs:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- uses: actions/checkout@v3
- run: npm ci --ignore-scripts --no-audit --no-save
- run: node ./node-pre-gyp.js --custom-rebuild
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js
- run: node --expose-gc ./scripts/test-memory-leaks.js

prebuild:
needs: test
strategy:
matrix:
node-version: ["16.14.0", "18.1.0", "20.9.0", "21.1.0"]
os: [ubuntu-20.04, windows-2019, macos-latest]
node-version: ["16.14.0", "18.1.0", "20.9.0", "21.1.0", "22.8.0"]
os: [ubuntu-20.04, windows-2019, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v3
- run: npm install --ignore-scripts --no-audit --no-save
- run: node ./node-pre-gyp.js --custom-rebuild
- run: node ./scripts/test.js --notypecheck
- uses: actions/checkout@v4
- run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"
- run: node ./node-pre-gyp.js
env:
ROARING_NODE_PRE_GYP: "custom-rebuild"
- run: node ./scripts/test.js
- name: Prebuild
env:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.PREBUILD_GITHUB_TOKEN }}
Expand All @@ -44,27 +52,29 @@ jobs:
needs: [test, prebuild]
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macos-latest]
os: [ubuntu-20.04, windows-2019, macos-13, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "18.16.0"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: npm install
- run: node ./scripts/test.js --notypecheck
- run: node ./scripts/test.js

docs:
needs: [test, prebuild, post-test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x

- name: npm ci
run: npm ci --ignore-scripts
- name: npm install
run: npm install --exact --no-audit --no-save
env:
ROARING_NODE_PRE_GYP: "false"

- name: npm run doc
run: npm run doc
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you want to contribute and submit a pull request, use the master branch.

## Supported node versions

Node 16.14+, 18+, 20+, 21 are currently supported.
Node 16.14+, 18+, 20+, 21, and 22 are currently supported.

Node 8 and 10 support was dropped in release 2.0

Expand Down
Loading