-
Notifications
You must be signed in to change notification settings - Fork 235
45 lines (35 loc) · 904 Bytes
/
publish.yml
File metadata and controls
45 lines (35 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
# run: pnpm publish --access public --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}