Skip to content

Commit 75c3a6d

Browse files
committed
chore: move publish to ci
1 parent e28d940 commit 75c3a6d

File tree

7 files changed

+92
-1024
lines changed

7 files changed

+92
-1024
lines changed

.github/workflows/release.yml

+16-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,24 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: actions/setup-node@v4
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Set node
23+
uses: actions/setup-node@v4
2024
with:
21-
node-version: 18.18.2
25+
node-version: lts/*
26+
cache: pnpm
27+
registry-url: 'https://registry.npmjs.org'
2228

2329
- run: npx changelogithub
2430
env:
2531
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
33+
- name: Install Dependencies
34+
run: pnpm i
35+
36+
- run: pnpm publish -r --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
39+
NPM_CONFIG_PROVENANCE: true

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dev": "pnpm run stub && pnpm -C packages/devtools dev",
1515
"lint": "eslint .",
1616
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
17-
"release": "pnpm test && bumpp -r -x \"pnpm run changelog\" --all && pnpm -r publish",
17+
"release": "pnpm test && bumpp -r -x \"pnpm run changelog\" --all",
1818
"test": "pnpm lint",
1919
"docs": "nuxi dev docs",
2020
"docs:build": "CI=true nuxi generate docs",
@@ -53,6 +53,9 @@
5353
"vue": "^3.4.38",
5454
"vue-tsc": "^2.0.29"
5555
},
56+
"resolutions": {
57+
"esbuild": "^0.21.5"
58+
},
5659
"simple-git-hooks": {
5760
"pre-commit": "npx lint-staged"
5861
},

packages/devtools-kit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"build": "unbuild",
3838
"stub": "unbuild --stub",
3939
"dev:prepare": "nr stub",
40-
"prepublishOnly": "pnpm build"
40+
"prepack": "pnpm build"
4141
},
4242
"peerDependencies": {
4343
"vite": "*"

packages/devtools-ui-kit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"build": "nuxt-build-module build",
3232
"stub": "nuxt-build-module build --stub",
3333
"dev": "nuxi dev playground",
34-
"prepublishOnly": "npm run build",
34+
"prepack": "pnpm build",
3535
"playground:build": "nuxi generate playground"
3636
},
3737
"peerDependencies": {

packages/devtools-wizard/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"build": "unbuild",
2323
"stub": "unbuild --stub",
2424
"dev:prepare": "nr stub",
25-
"prepublishOnly": "pnpm build"
25+
"prepack": "pnpm build"
2626
},
2727
"dependencies": {
2828
"consola": "^3.2.3",

packages/devtools/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"dev": "nuxi dev client",
3737
"dev:playground": "pnpm build && nuxi dev playground",
3838
"dev:prepare": "nuxi prepare client",
39-
"prepublishOnly": "pnpm build"
39+
"prepack": "pnpm build"
4040
},
4141
"peerDependencies": {
4242
"vite": "*"

0 commit comments

Comments
 (0)