Skip to content

Commit 415ad28

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
uses: pnpm/action-setup@v4
3737
with:
3838
version: latest
39+
- name: Authenticate with private NPM package
40+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PYTHON_NODE_NPM_TOKEN }}" > ~/.npmrc
3941
- name: Install dependencies
4042
run: pnpm install --frozen-lockfile
4143
- name: Bump version and push commit
@@ -48,7 +50,7 @@ jobs:
4850
- name: Publish new version
4951
run: |
5052
npm install npm -g
51-
npm publish --access public --tag ${{ inputs.prerelease == true && 'next' || 'latest' }}
53+
npm publish --tag ${{ inputs.prerelease == true && 'next' || 'latest' }}
5254
- name: Create release notes
5355
run: |
5456
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)