File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,16 +110,14 @@ jobs:
110110 name : Publish to npm
111111 runs-on : ubuntu-latest
112112 needs : build
113- permissions :
114- contents : read
115- id-token : write
116113 steps :
117114 - uses : actions/checkout@v4
118115
119116 - name : Setup Node.js
120117 uses : actions/setup-node@v4
121118 with :
122119 node-version : 20
120+ registry-url : https://registry.npmjs.org
123121
124122 - name : Download all artifacts
125123 uses : actions/download-artifact@v4
@@ -139,15 +137,15 @@ jobs:
139137 - name : Move artifacts
140138 run : |
141139 cd crates/supermarkdown-napi
142- # Copy .node files from artifact subdirs to current dir
143140 find ../../artifacts -name "*.node" -type f -exec cp {} . \;
144141 ls -la *.node
145142
146143 - name : Publish
147144 run : |
148145 cd crates/supermarkdown-napi
149- npm config set registry https://registry.npmjs.org/
150- npm publish --access public --provenance --ignore-scripts
146+ npm publish --access public --ignore-scripts
147+ env :
148+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
151149
152150 publish-crates :
153151 name : Publish to crates.io
You can’t perform that action at this time.
0 commit comments