Skip to content

Commit a8e05fe

Browse files
committed
Adjust publish_release to use publishConfig
1 parent ee65b7f commit a8e05fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/publish_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Publish new version
4949
run: |
5050
npm install npm -g
51-
npm publish --access public --tag ${{ inputs.prerelease == true && 'next' || 'latest' }}
51+
npm publish --tag ${{ inputs.prerelease == true && 'next' || 'latest' }}
5252
- name: Create release notes
5353
run: |
5454
npx @matteo.collina/release-notes -a ${{ secrets.GITHUB_TOKEN }} -t v${{ inputs.version }} -r ${{ github.repository }} ${{ github.event.inputs.prerelease == 'true' && '-p' || '' }} -c ${{ github.ref }}

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"json-schema-to-typescript": "^15.0.4",
4040
"neostandard": "^0.12.1"
4141
},
42+
"publishConfig": {
43+
"registry": "https://registry.npmjs.org/",
44+
"access": "restricted",
45+
"scope": "@platformatic"
46+
},
4247
"engines": {
4348
"node": ">= 22.19.0"
4449
}

0 commit comments

Comments
 (0)