Skip to content

Commit

Permalink
Release v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Nov 11, 2023
1 parent 6dce5e8 commit bee852a
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 15 deletions.
41 changes: 32 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
type: boolean
required: false
description: Force rebuild
permissions: {}
jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -28,37 +29,38 @@ jobs:
- uses: actions/cache@v3
id: cache
with:
path: lib
path: |
lib
versions.json
key: ${{ steps.gen-cache-key.outputs.key }}
- name: Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
docker build -t wasm-vips .
docker run --rm -v ${{ github.workspace }}:/src wasm-vips
CI:
runs-on: ${{ matrix.os }}
needs: build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
nodejs_version: 16
publish: true
- os: macos-11
nodejs_version: 16
- os: windows-2022
nodejs_version: 16
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.nodejs_version }}
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache/restore@v3
with:
path: lib
path: |
lib
versions.json
key: ${{ needs.build.outputs.cache-key }}
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -68,11 +70,32 @@ jobs:
run: npm --prefix test/unit install
- name: Test
run: npm test
release:
if: github.ref_type == 'tag'
needs:
- build
- CI
permissions:
contents: write # for gh release create
id-token: write # for npm publish --provenance
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
- uses: actions/cache/restore@v3
with:
path: |
lib
versions.json
key: ${{ needs.build.outputs.cache-key }}
fail-on-cache-miss: true
- name: Publish
if: matrix.publish && github.ref_type == 'tag'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm publish
npm publish --provenance
gh release create ${{ github.ref_name }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to wasm-vips will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.0.6] - TBD
## [v0.0.6] - 2023-11-11

Uses libvips v8.15.0, compiled with Emscripten v3.1.48.

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.13)

project(wasm-vips
VERSION 0.0.5
VERSION 0.0.6
DESCRIPTION "libvips for the browser and Node.js, compiled to WebAssembly with Emscripten"
LANGUAGES
CXX
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasm-vips",
"version": "0.0.5",
"version": "0.0.6",
"description": "libvips for the browser and Node.js, compiled to WebAssembly with Emscripten",
"homepage": "https://github.com/kleisauke/wasm-vips",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasm-vips-playground",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"description": "A playground for experimenting with wasm-vips",
"homepage": "https://github.com/kleisauke/wasm-vips/tree/master/playground#readme",
Expand Down
2 changes: 1 addition & 1 deletion test/bench/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasm-vips-benchmark",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"description": "Benchmark and performance tests for wasm-vips",
"homepage": "https://github.com/kleisauke/wasm-vips/tree/master/test/bench#readme",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wasm-vips-test",
"version": "0.0.5",
"version": "0.0.6",
"private": true,
"description": "Unit tests for wasm-vips",
"homepage": "https://github.com/kleisauke/wasm-vips/tree/master/test/unit",
Expand Down

0 comments on commit bee852a

Please sign in to comment.