Skip to content

Commit 767b38a

Browse files
committed
Npm trusted publishing
1 parent fad5e49 commit 767b38a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ jobs:
165165
env:
166166
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167167
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
168-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
169168
GORELEASER_KEY: ${{ secrets.KOSLI_GORELEASERPRO }}
170169

171170
- name: Copy npm packages into dist for provenance

npm/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory contains the npm package structure for distributing the Kosli CLI
44

55
## Structure
66

7-
```
7+
```text
88
npm/
99
├── wrapper/ # @kosli/cli — the package users install
1010
│ ├── bin/kosli # JS shim that detects the platform and runs the binary
@@ -97,6 +97,8 @@ before:
9797

9898
Packages are published to the [npm public registry](https://registry.npmjs.org). Platform packages must be published before the wrapper, since the wrapper's `optionalDependencies` references them by version. After a goreleaser build has populated the `bin/` directories:
9999

100+
The package publishing expects the package is configured for [Trusted publishing](https://docs.npmjs.com/trusted-publishers) - so if more platforms are added you must configure the new packages accordingly.
101+
100102
```sh
101103
# Publish platform packages first
102104
(cd npm/cli-linux-x64 && npm publish)

0 commit comments

Comments
 (0)