Skip to content

Commit

Permalink
chore: move publish to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 20, 2024
1 parent e28d940 commit 75c3a6d
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 1,024 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,24 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Set node
uses: actions/setup-node@v4
with:
node-version: 18.18.2
node-version: lts/*
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- run: pnpm publish -r --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
NPM_CONFIG_PROVENANCE: true
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dev": "pnpm run stub && pnpm -C packages/devtools dev",
"lint": "eslint .",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "pnpm test && bumpp -r -x \"pnpm run changelog\" --all && pnpm -r publish",
"release": "pnpm test && bumpp -r -x \"pnpm run changelog\" --all",
"test": "pnpm lint",
"docs": "nuxi dev docs",
"docs:build": "CI=true nuxi generate docs",
Expand Down Expand Up @@ -53,6 +53,9 @@
"vue": "^3.4.38",
"vue-tsc": "^2.0.29"
},
"resolutions": {
"esbuild": "^0.21.5"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"build": "unbuild",
"stub": "unbuild --stub",
"dev:prepare": "nr stub",
"prepublishOnly": "pnpm build"
"prepack": "pnpm build"
},
"peerDependencies": {
"vite": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools-ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"build": "nuxt-build-module build",
"stub": "nuxt-build-module build --stub",
"dev": "nuxi dev playground",
"prepublishOnly": "npm run build",
"prepack": "pnpm build",
"playground:build": "nuxi generate playground"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools-wizard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "unbuild",
"stub": "unbuild --stub",
"dev:prepare": "nr stub",
"prepublishOnly": "pnpm build"
"prepack": "pnpm build"
},
"dependencies": {
"consola": "^3.2.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dev": "nuxi dev client",
"dev:playground": "pnpm build && nuxi dev playground",
"dev:prepare": "nuxi prepare client",
"prepublishOnly": "pnpm build"
"prepack": "pnpm build"
},
"peerDependencies": {
"vite": "*"
Expand Down
Loading

0 comments on commit 75c3a6d

Please sign in to comment.