Skip to content

Commit 774af66

Browse files
committed
Update publish and test workflows
1 parent 42f59e1 commit 774af66

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
setup:
99
runs-on: ubuntu-latest
1010
name: Build and publish MathJax
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
@@ -17,9 +20,10 @@ jobs:
1720
with:
1821
version: 10
1922
run_install: false
23+
registry-url: 'https://registry.npmjs.org'
2024

2125
- name: Install packages
22-
run: pnpm -s i
26+
run: pnpm i
2327

2428
- name: Build MathJax
2529
run: |
@@ -30,5 +34,5 @@ jobs:
3034
- name: Publish to npm
3135
env:
3236
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
run: pnpm -s publish --access public
37+
run: pnpm publish --access public
3438

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
pnpm -s copy:pkg cjs
3838
3939
- name: Build tests
40-
run: pnpm -s tsc -p testsuite/tsconfig.json
40+
run: pnpm tsc -p testsuite/tsconfig.json
4141

4242
- name: Run tests
4343
run: pnpm -s test:gh

0 commit comments

Comments
 (0)