Skip to content

Merge pull request #511 from gre/chore/pnpm-changesets #8

Merge pull request #511 from gre/chore/pnpm-changesets

Merge pull request #511 from gre/chore/pnpm-changesets #8

Workflow file for this run

# Changesets release flow: on every push to master, this either opens/updates
# a "Version Packages" PR (aggregating pending .changeset entries into version
# bumps + CHANGELOGs), or — when that PR is merged — publishes to npm.
#
# Publishing uses npm trusted publishing (OIDC, no token). The npm-side
# configuration is bound to this workflow filename (publish.yml) — do not
# rename this file without updating the trusted publisher settings of each
# package on npmjs.com.
name: Release
on:
push:
branches: [master]
concurrency: release-${{ github.ref }}
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
cache: pnpm
- name: Upgrade npm for trusted publishing (needs >= 11.5.1)
run: npm install -g npm@11 && npm --version
- name: Install headless-gl system dependencies
run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: xvfb-run -s "-ac -screen 0 1280x1024x24" pnpm test
- name: Create release PR or publish to npm
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}