Skip to content
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
16 changes: 11 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@ on:
release:
types: [published]

permissions:
id-token: write # Required for Trusted Publishing on NPM

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Use Node.js 20.x
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest

- run: npm ci

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
87 changes: 48 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,56 +14,65 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm, ubuntu-24.04, ubuntu-24.04-arm, macos-14, macos-15, macos-15-intel]
os:
[
ubuntu-22.04,
ubuntu-22.04-arm,
ubuntu-24.04,
ubuntu-24.04-arm,
macos-14,
macos-15,
macos-15-intel,
]
node: [20, 22, 24]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}

- name: Update apt and install packages
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y
sudo apt-get install -y \
gcc g++ python3-pip libbz2-dev ccache zlib1g-dev uuid-dev
- name: Update apt and install packages
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update -y
sudo apt-get install -y \
gcc g++ python3-pip libbz2-dev ccache zlib1g-dev uuid-dev

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Setup Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.11"

- name: installing add on packages
if: startsWith(matrix.os, 'macos')
run: brew install ossp-uuid
- name: installing add on packages
if: startsWith(matrix.os, 'macos')
run: brew install ossp-uuid

- name: setting path
run: PATH=$PATH:$HOME/bin
- name: setting path
run: PATH=$PATH:$HOME/bin

- name: installing dependencies
run: |
npm install
npm i -g eslint
npm i -g codecov
npm i -g typescript
- name: installing dependencies
run: |
npm install
npm i -g eslint
npm i -g codecov
npm i -g typescript

- name: running lint
run: npm run lint
- name: running lint
run: npm run lint

- name: running test
run: npm run test:dist
- name: running test
run: npm run test:dist

- name: running codecov
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
run: npm run codecov
- name: running codecov
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
run: npm run codecov

- name: codecov action
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: codecov action
if: ${{ matrix.node == '20' && matrix.os == 'ubuntu-22.04' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 6 additions & 1 deletion Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
Unreleased
4.0.0
* NEW: Use libzim 9.4.0
* FIX: Segmentation Fault issues
* FIX: Ensure addItem operation is thread-safe / protected by a mutex
* NEW: Use new Illustration APIs
* FIX: Add prebuilt libzim for Linux aarch64

3.5.0
* NEW: Build now supports ARM64 (`aarch64`) and ARM (32‑bit)
Expand Down
Loading