-
Notifications
You must be signed in to change notification settings - Fork 239
43 lines (35 loc) · 973 Bytes
/
publish.yml
File metadata and controls
43 lines (35 loc) · 973 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
name: Release
on:
release:
types: [published]
jobs:
setup:
runs-on: ubuntu-latest
name: Build and publish MathJax
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
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: Temp fix to publish
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
- name: Publish to npmjs
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}