Skip to content

Commit 39ec40e

Browse files
authored
ci: fix publish (#449)
Signed-off-by: Philippe Martin <[email protected]>
1 parent 7f1dd53 commit 39ec40e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/next-build.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ jobs:
164164
with:
165165
run_install: false
166166

167+
- uses: actions/setup-node@v4
168+
with:
169+
node-version: 22
170+
registry-url: 'https://npm.pkg.github.com'
171+
scope: ${{ github.repository_owner }}
172+
cache: 'pnpm'
173+
167174
- name: Set api package version
168175
run: |
169176
PACKAGE_VERSION=$(jq -r '.version' packages/api/package.json)
@@ -174,6 +181,8 @@ jobs:
174181
sed -i "s#version\":\ \"\(.*\)\",#version\":\ \"${TAG_PATTERN}\",#g" packages/api/package.json
175182
176183
- name: publish api package
177-
run: pnpm publish
184+
run: |
185+
cd packages/api
186+
pnpm publish --no-git-checks
178187
env:
179188
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

packages/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "API for Kubernetes Dashboard extension",
55
"repository": "https://github.com/podman-desktop/extension-kubernetes-dashboard",
66
"publishConfig": {
7+
"registry": "https://npm.pkg.github.com",
78
"provenance": true,
89
"access": "public"
910
},
@@ -16,8 +17,7 @@
1617
"prepare": "",
1718
"clean": "rimraf lib *.tsbuildinfo",
1819
"build": "",
19-
"watch": "",
20-
"publish:next": "pnpm publish --registry=https://registry.npmjs.org/ --no-git-tag-version --new-version 0.0.1-\"$(date +%s)\""
20+
"watch": ""
2121
},
2222
"dependencies": {}
2323
}

0 commit comments

Comments
 (0)