Skip to content

Third try to get trusted publishing to work #14

Third try to get trusted publishing to work

Third try to get trusted publishing to work #14

Workflow file for this run

name: Release
on:
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
name: Build and publish MathJax
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install packages
run: pnpm i
- name: Build MathJax
run: |
./components/bin/version
pnpm -s link:src
pnpm -s build-all
- name: Publish to npmjs
run: npm publish --provenance

Check failure on line 40 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 40
# run: pnpm publish --access public --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}