Skip to content

Commit 804ba44

Browse files
authored
fix: npm trusted publishing (#843)
* Npm trusted publishing * Removing obsolete .npmrc files * Update Readme
1 parent bb9af43 commit 804ba44

10 files changed

Lines changed: 2 additions & 15 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: 2 additions & 6 deletions
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
@@ -111,11 +111,7 @@ Packages are published to the [npm public registry](https://registry.npmjs.org).
111111
(cd npm/wrapper && npm publish)
112112
```
113113

114-
Each package directory contains an `.npmrc` that sets the auth token:
115-
116-
```text
117-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
118-
```
114+
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.
119115

120116
## Automated Publishing with npm-publish.sh
121117

npm/cli-darwin-arm64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-darwin-x64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-linux-arm/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-linux-arm64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-linux-x64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-win32-arm64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/cli-win32-x64/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

npm/wrapper/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)