Skip to content

Commit 0a53877

Browse files
committed
add publishing workflow and rename test workflow
1 parent c58d95f commit 0a53877

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
setup:
9+
runs-on: ubuntu-latest
10+
name: Build and publish MathJax
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
with:
18+
version: 10
19+
run_install: false
20+
21+
- name: Install packages
22+
run: pnpm -s i
23+
24+
- name: Build MathJax
25+
run: pnpm -s build-all
26+
27+
- name: Publish to npm
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: pnpm -s publish --access public
31+

0 commit comments

Comments
 (0)