@nailuogg/pi-find-packages 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +6 -5
- package/README.md +4 -2
- package/package.json +1 -1
|
@@ -6,11 +6,12 @@ on:
|
|
|
6
6
|
|
|
7
7
|
permissions:
|
|
8
8
|
contents: write # create the GitHub release
|
|
9
|
-
id-token: write #
|
|
9
|
+
id-token: write # OIDC token for npm Trusted Publishing
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
publish:
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
|
+
environment: npm
|
|
14
15
|
steps:
|
|
15
16
|
- uses: actions/checkout@v4
|
|
16
17
|
|
|
@@ -18,7 +19,9 @@ jobs:
|
|
|
18
19
|
with:
|
|
19
20
|
node-version: 24
|
|
20
21
|
registry-url: https://registry.npmjs.org/
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
- name: Ensure npm supports Trusted Publishing
|
|
24
|
+
run: npm install -g npm@latest # OIDC trusted publishing needs npm >= 11.5.1
|
|
22
25
|
|
|
23
26
|
- name: Verify version matches tag
|
|
24
27
|
run: |
|
|
@@ -29,10 +32,8 @@ jobs:
|
|
|
29
32
|
exit 1
|
|
30
33
|
fi
|
|
31
34
|
|
|
32
|
-
- name: Publish
|
|
35
|
+
- name: Publish (OIDC trusted publishing, no token)
|
|
33
36
|
run: npm publish
|
|
34
|
-
env:
|
|
35
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
36
37
|
|
|
37
38
|
- name: Create GitHub release
|
|
38
39
|
run: gh release create "${GITHUB_REF_NAME}" --verify-tag --generate-notes
|
package/README.md
CHANGED
|
@@ -58,8 +58,10 @@ The image contains no pi and no credentials: it exists solely to clone/unpack/re
|
|
|
58
58
|
|
|
59
59
|
Publishing is automated: push a tag `v<version>` matching `package.json`, and the
|
|
60
60
|
`publish.yml` workflow verifies the version, publishes `@nailuogg/pi-find-packages`
|
|
61
|
-
to npm, and creates a GitHub release.
|
|
62
|
-
|
|
61
|
+
to npm, and creates a GitHub release. Publishing uses npm **Trusted Publishing (OIDC)**: the package's npm settings list
|
|
62
|
+
this repository and `publish.yml` as a trusted publisher, so CI authenticates with a
|
|
63
|
+
short-lived OIDC token — no `NPM_TOKEN` secret involved. Requires the workflow to run
|
|
64
|
+
with `id-token: write` (set) and npm >= 11.5.1 (the workflow installs the latest npm).
|
|
63
65
|
|
|
64
66
|
## Security boundaries
|
|
65
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nailuogg/pi-find-packages",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local catalog of the pi package ecosystem with /find-packages: offline search, cold-start data, and sandboxed source analysis for integration review",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|