Skip to content

Commit 9b2a25b

Browse files
committed
fix trusted publishing
1 parent c734be7 commit 9b2a25b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,13 @@ jobs:
170170
toolchain: stable
171171

172172
- name: Authenticate with crates.io
173+
id: crates-io-auth
173174
uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3
174175

175176
- name: Publish socket-patch-core
176177
run: cargo publish -p socket-patch-core
178+
env:
179+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
177180

178181
- name: Wait for crates.io index update
179182
run: sleep 30
@@ -183,6 +186,8 @@ jobs:
183186

184187
- name: Publish socket-patch-cli
185188
run: cargo publish -p socket-patch-cli
189+
env:
190+
CARGO_REGISTRY_TOKEN: ${{ steps.crates-io-auth.outputs.token }}
186191

187192
npm-publish:
188193
needs: [sync-and-tag, build]
@@ -232,7 +237,7 @@ jobs:
232237
- name: Publish package
233238
env:
234239
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
235-
run: npm publish npm/socket-patch --provenance --access public
240+
run: npm publish ./npm/socket-patch --provenance --access public
236241

237242
pypi-publish:
238243
needs: [sync-and-tag, build]

pypi/socket-patch/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ keywords = ["security", "patch", "cli", "dependencies"]
1616
classifiers = [
1717
"Development Status :: 5 - Production/Stable",
1818
"Intended Audience :: Developers",
19-
"License :: OSI Approved :: MIT License",
2019
"Programming Language :: Python :: 3",
2120
"Topic :: Security",
2221
"Topic :: Software Development :: Build Tools",

0 commit comments

Comments
 (0)