Skip to content

Commit 64305bb

Browse files
committed
repare actions
1 parent c4e6e41 commit 64305bb

4 files changed

Lines changed: 20 additions & 12 deletions

File tree

.github/workflows/publish-completions.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- "minor"
1414
- "major"
1515

16+
permissions:
17+
id-token: write
18+
contents: write
19+
1620
jobs:
1721
publish:
1822
runs-on: ubuntu-latest
@@ -43,11 +47,9 @@ jobs:
4347
run: echo "VERSION=$(jq -r '.version' packages/completions/package.json)" >> $GITHUB_OUTPUT
4448

4549
- name: Publish to npm
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4850
run: |
4951
cd packages/completions
50-
npm publish
52+
npm publish --provenance
5153
5254
- name: Commit and Push
5355
run: |

.github/workflows/publish-format.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- "minor"
1414
- "major"
1515

16+
permissions:
17+
id-token: write
18+
contents: write
19+
1620
jobs:
1721
publish:
1822
runs-on: ubuntu-latest
@@ -43,11 +47,9 @@ jobs:
4347
run: echo "VERSION=$(jq -r '.version' packages/format/package.json)" >> $GITHUB_OUTPUT
4448

4549
- name: Publish to npm
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4850
run: |
4951
cd packages/format
50-
npm publish
52+
npm publish --provenance
5153
5254
- name: Commit and Push
5355
run: |

.github/workflows/publish-latex-pretext.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
type: string
2424
default: "main"
2525

26+
permissions:
27+
id-token: write
28+
contents: write
29+
2630
jobs:
2731
publish:
2832
runs-on: ubuntu-latest
@@ -63,11 +67,9 @@ jobs:
6367
run: echo "VERSION=$(jq -r '.version' packages/latex-pretext/package.json)" >> $GITHUB_OUTPUT
6468

6569
- name: Publish to npm
66-
env:
67-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6870
run: |
6971
cd packages/latex-pretext
70-
npm publish
72+
npm publish --provenance
7173
7274
- name: Commit and Push
7375
run: |

.github/workflows/publish-visual-editor.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- "minor"
1414
- "major"
1515

16+
permissions:
17+
id-token: write
18+
contents: write
19+
1620
jobs:
1721
publish:
1822
runs-on: ubuntu-latest
@@ -43,11 +47,9 @@ jobs:
4347
run: echo "VERSION=$(jq -r '.version' packages/visual-editor/package.json)" >> $GITHUB_OUTPUT
4448

4549
- name: Publish to npm
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4850
run: |
4951
cd packages/visual-editor
50-
npm publish
52+
npm publish --provenance
5153
5254
- name: Commit and Push
5355
run: |

0 commit comments

Comments
 (0)