dsh-publish-helper 0.21.2 → 0.21.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-publish-helper",
3
- "version": "0.21.2",
3
+ "version": "0.21.3",
4
4
  "description": "DSH plugin publishing assistant: discover by topic, check listing readiness, generate the registry entry, open the pull request and show a settings page.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,13 +1,12 @@
1
1
  # Copy to .github/workflows/release.yml in the package repository.
2
2
  #
3
- # Trusted publishing (recommended): configure it once on npmjs.com
4
- # package page -> Settings -> Trusted publishing -> GitHub Actions
5
- # repository: <owner>/<repo> workflow filename: release.yml
6
- # Then a tag push (v1.2.3) publishes without any npm token or OTP.
3
+ # Token publishing (default here):
4
+ # add a repository secret NPM_TOKEN = granular npm token
5
+ # (Read and write, Bypass 2FA; never commit it) and push a tag.
7
6
  #
8
- # Without trusted publishing, replace the last step with the commented fallback
9
- # and store a granular npm token (Read and write, Bypass 2FA) in the NPM_TOKEN
10
- # repository secret. Never commit that token.
7
+ # Trusted publishing alternative (no token, needs account 2FA on npm):
8
+ # package page -> Settings -> Trusted publishing -> GitHub Actions
9
+ # then remove the NODE_AUTH_TOKEN env from the publish step.
11
10
  name: release
12
11
 
13
12
  on:
@@ -18,7 +17,7 @@ on:
18
17
 
19
18
  permissions:
20
19
  contents: read
21
- id-token: write # required for trusted publishing and provenance
20
+ id-token: write # provenance attestation
22
21
 
23
22
  jobs:
24
23
  publish:
@@ -31,8 +30,9 @@ jobs:
31
30
  - uses: actions/setup-node@v4
32
31
  with:
33
32
  node-version: 22
33
+ registry-url: 'https://registry.npmjs.org'
34
34
 
35
- - name: Use the npm CLI that supports trusted publishing
35
+ - name: Use the npm CLI that supports provenance
36
36
  run: npm install -g npm@latest
37
37
 
38
38
  - name: Verify the tag matches package.json
@@ -59,9 +59,5 @@ jobs:
59
59
 
60
60
  - name: Publish with provenance
61
61
  run: npm publish --provenance --access public
62
-
63
- # Fallback when trusted publishing is not configured:
64
- # - name: Publish with a token
65
- # run: npm publish --provenance --access public
66
- # env:
67
- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62
+ env:
63
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}