Skip to content

Commit 7eeaec2

Browse files
committed
Third try to get trusted publishing to work
1 parent f9edf59 commit 7eeaec2

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
1014
name: Build and publish MathJax
11-
permissions:
12-
contents: read
13-
id-token: write
1415
steps:
1516
- name: Checkout
1617
uses: actions/checkout@v4
@@ -20,6 +21,10 @@ jobs:
2021
with:
2122
version: 10
2223
run_install: false
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: '24'
2328
registry-url: 'https://registry.npmjs.org'
2429

2530
- name: Install packages
@@ -31,13 +36,10 @@ jobs:
3136
pnpm -s link:src
3237
pnpm -s build-all
3338
34-
# - name: Temp fix to publish
35-
# run: |
36-
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
37-
# echo "always-auth=true" >> ~/.npmrc
38-
3939
- name: Publish to npmjs
40-
run: pnpm publish --access public --no-git-checks
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: npm publish --provenance
41+
42+
# run: pnpm publish --access public --no-git-checks
43+
# env:
44+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4345

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "https://github.com/mathjax/Mathjax-src/"
23+
"url": "git+https://github.com/mathjax/Mathjax-src.git"
2424
},
2525
"type": "module",
2626
"main": "components/mjs/node-main/node-main.js",

0 commit comments

Comments
 (0)