Skip to content

ci: fix OIDC npm publishing by removing conflicting registry-url and … #361

ci: fix OIDC npm publishing by removing conflicting registry-url and …

ci: fix OIDC npm publishing by removing conflicting registry-url and … #361

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Linux
runs-on: ubuntu-latest
permissions:
contents: write # semantic-release: create tags & GitHub releases
issues: write # semantic-release: comment on issues
pull-requests: write # semantic-release: comment on PRs
id-token: write # npm trusted publisher: obtain OIDC token
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22'
- name: apt-get install
run: sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- run: npm install -g npm@latest
- run: corepack enable
- run: yarn
- run: yarn test
- name: yarn semantic-release
if: github.ref == 'refs/heads/master'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn semantic-release