Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit ce08810

Browse files
committed
chore: update build and release ci scripts
1 parent 6a1879b commit ce08810

File tree

4 files changed

+33
-13
lines changed

4 files changed

+33
-13
lines changed

.changeset/config.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": "@changesets/cli/changelog",
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "chakra-ui/chakra-ui-vue-next" }
6+
],
47
"commit": false,
5-
"fixed": [],
68
"linked": [],
7-
"access": "restricted",
8-
"baseBranch": "master",
9+
"access": "public",
10+
"baseBranch": "main",
911
"updateInternalDependencies": "patch",
10-
"ignore": []
11-
}
12+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
13+
"onlyUpdatePeerDependentsWhenOutOfRange": true
14+
},
15+
"ignore": ["example-nuxt-app", "@chakra-ui/nuxt-next-playground"]
16+
}

.github/workflows/release.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,23 @@ jobs:
4545
git config --global user.name "codebender828"
4646
git config --global user.email "[email protected]"
4747
48-
- name: Create Release Pull Request
49-
uses: changesets/action@master
48+
- name: Create @dev release
49+
if: steps.changesets.outputs.published != 'true'
50+
run: |
51+
git checkout main
52+
pnpm version:dev
53+
pnpm release:dev
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Create release Pull Request or Publish to NPM
59+
id: changesets
60+
uses: changesets/action@v1
5061
with:
5162
publish: pnpm release
52-
title: "chore(release): version packages and publish"
53-
commit: "chore(release): version packages"
63+
title: "ci(release): version packages and publish"
64+
commit: "ci(release): version packages"
5465
env:
5566
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5667
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

examples/nuxt-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "example-nuxt-app",
23
"private": true,
34
"scripts": {
45
"build": "nuxt build",

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"postbuild:fast": "pnpm pkgs:size",
2828
"start": "preconstruct watch",
2929
"scaffold": "hygen generator",
30-
"release": "pnpm changeset publish",
3130
"preplaygound:dev": "node ./scripts/dev.js",
3231
"playground:dev": "cross-env NODE_ENV=development vite serve playground --config ./vite.config.ts --open",
3332
"preplaygound:build": "node ./scripts/dev.js",
@@ -60,7 +59,11 @@
6059
"vitest": "vitest --globals --environment=jsdom",
6160
"coverage": "vitest run --coverage",
6261
"process:packages": "pnpm jiti ./scripts/process-packages.ts process-packages",
63-
"pkgs:size": "pnpm jiti ./scripts/plugins/size-packages.ts"
62+
"pkgs:size": "pnpm jiti ./scripts/plugins/size-packages.ts",
63+
"version": "changeset version",
64+
"release": "changeset publish",
65+
"version:dev": "changeset version --snapshot dev",
66+
"release:dev": "changeset publish --tag dev"
6467
},
6568
"license": "MIT",
6669
"private": true,

0 commit comments

Comments
 (0)