Skip to content

Commit 351698e

Browse files
authored
Merge pull request #1274 from mathjax/feature/publish_action
Add publishing action
2 parents 85dc9ba + a890bdf commit 351698e

3 files changed

Lines changed: 34 additions & 38 deletions

File tree

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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: |
26+
./components/bin/version
27+
pnpm -s link:src
28+
pnpm -s build-all
29+
30+
- name: Publish to npm
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: pnpm -s publish --access public
34+

.travis.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)