We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d282d commit eb8f623Copy full SHA for eb8f623
1 file changed
.github/workflows/publish.yml
@@ -8,6 +8,10 @@ on:
8
tags:
9
- '*'
10
11
+permissions:
12
+ id-token: write
13
+ contents: read
14
+
15
jobs:
16
publish-npm:
17
runs-on: ubuntu-latest
@@ -18,6 +22,9 @@ jobs:
18
22
node-version: 22
19
23
registry-url: https://registry.npmjs.org/
20
24
25
+ - name: Update npm for Trusted Publishing
26
+ run: npm install -g [email protected]
27
21
28
- name: Set up npmrc
29
id: setup-npmrc
30
run: echo "@tiptap-cloud:registry=https://registry.tiptap.dev/" >> ~/.npmrc && echo "//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_PRIVATE_REGISTRY_NPM_TOKEN }}" >> ~/.npmrc
@@ -26,10 +33,6 @@ jobs:
33
34
- run: npm run publish
35
if: "!contains(github.ref, '-rc.')"
- env:
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
31
36
32
37
- run: npm run publish:pre
38
if: "contains(github.ref, '-rc.')"
0 commit comments