Skip to content

Commit b9dcc25

Browse files
Update publish steps
1 parent b78d83a commit b9dcc25

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Release
22
on:
33
push:
44
branches:
5-
- main
5+
- geoffr/update-steps
66
permissions:
77
contents: write
88
packages: write
@@ -17,16 +17,13 @@ jobs:
1717
with:
1818
release-type: node
1919
token: ${{ secrets.GITHUB_TOKEN }}
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
if: ${{ steps.release.outputs.release_created }}
22-
with:
23-
fetch-depth: 0
24-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@v4
2523
with:
2624
cache: 'npm'
2725
node-version: 20
2826
registry-url: 'https://registry.npmjs.org'
29-
scope: '@octopusdeploy'
3027
if: ${{ steps.release.outputs.release_created }}
3128
- run: npm ci
3229
if: ${{ steps.release.outputs.release_created }}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"url": "https://github.com/OctopusDeploy/mcp-server.git"
3131
},
3232
"license": "Apache-2.0",
33+
"publishConfig": {
34+
"registry": "https://registry.npmjs.org/",
35+
"access": "public"
36+
},
3337
"dependencies": {
3438
"@modelcontextprotocol/sdk": "^1.17.5",
3539
"@octopusdeploy/api-client": "^3.8.0",

0 commit comments

Comments
 (0)