Skip to content

Commit 10d395b

Browse files
committed
Tweak publish workflow
1 parent 71bc49f commit 10d395b

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [published]
5-
workflow_call:
6-
secrets:
7-
NPM_TOKEN:
8-
required: true
95

106
jobs:
117
build:
@@ -20,18 +16,15 @@ jobs:
2016
submodules: true
2117
- name: install corepack
2218
uses: pnpm/action-setup@v4
19+
- uses: jwlawson/actions-setup-cmake@v2
20+
with:
21+
cmake-version: '3.30.x'
2322
- uses: actions/setup-node@v6
2423
with:
2524
node-version: 24
2625
registry-url: 'https://registry.npmjs.org'
2726
cache: pnpm
2827
- run: pnpm install
29-
- run: npm run pub
30-
- name: Deploy Docs
31-
uses: peaceiris/actions-gh-pages@v4
32-
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: docs
35-
publish_branch: gh-pages
28+
- run: npm run ci
3629
- run: npm pkg delete devDependencies scripts packageManager pnpm
3730
- run: npm publish --access public --provenance

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"publishConfig": {
6363
"tag": "1.x"
6464
},
65+
"packageManager": "pnpm@10.30.3",
6566
"engines": {
6667
"node": ">=14"
6768
}

0 commit comments

Comments
 (0)