@icebreakers/monorepo-templates 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/.github/workflows/release-intent-auto.yml +25 -1
- package/assets/.github/workflows/release.yml +23 -1
- package/assets/package.json +5 -5
- package/assets/pnpm-workspace.yaml +1 -1
- package/assets/renovate.json +2 -1
- package/package.json +1 -1
- package/templates/client/package.json +5 -5
- package/templates/server/package.json +2 -2
- package/templates/vue-lib/package.json +1 -1
|
@@ -27,14 +27,38 @@ jobs:
|
|
|
27
27
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
28
28
|
with:
|
|
29
29
|
fetch-depth: 1
|
|
30
|
+
ref: ${{ github.event.pull_request.base.sha || github.sha }}
|
|
31
|
+
persist-credentials: false
|
|
30
32
|
|
|
31
33
|
- name: Setup Node.js environment
|
|
32
34
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
33
35
|
with:
|
|
34
36
|
node-version: 24
|
|
35
37
|
|
|
38
|
+
- name: Validate GitHub App configuration
|
|
39
|
+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
40
|
+
env:
|
|
41
|
+
APP_CLIENT_ID: ${{ vars.REPOCTL_APP_CLIENT_ID }}
|
|
42
|
+
APP_PRIVATE_KEY_CONFIGURED: ${{ secrets.REPOCTL_APP_PRIVATE_KEY != '' }}
|
|
43
|
+
run: |
|
|
44
|
+
if { [ -n "$APP_CLIENT_ID" ] && [ "$APP_PRIVATE_KEY_CONFIGURED" != 'true' ]; } ||
|
|
45
|
+
{ [ -z "$APP_CLIENT_ID" ] && [ "$APP_PRIVATE_KEY_CONFIGURED" = 'true' ]; }; then
|
|
46
|
+
echo 'Configure both REPOCTL_APP_CLIENT_ID and REPOCTL_APP_PRIVATE_KEY.' >&2
|
|
47
|
+
exit 1
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
- name: Create GitHub App token
|
|
51
|
+
if: ${{ vars.REPOCTL_APP_CLIENT_ID != '' && (github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
|
52
|
+
id: app-token
|
|
53
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
54
|
+
with:
|
|
55
|
+
client-id: ${{ vars.REPOCTL_APP_CLIENT_ID }}
|
|
56
|
+
private-key: ${{ secrets.REPOCTL_APP_PRIVATE_KEY }}
|
|
57
|
+
permission-contents: write
|
|
58
|
+
permission-pull-requests: write
|
|
59
|
+
|
|
36
60
|
- name: Generate or backfill changesets
|
|
37
61
|
env:
|
|
38
|
-
GITHUB_TOKEN: ${{ github.token }}
|
|
62
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token || github.token }}
|
|
39
63
|
PR_NUMBERS: ${{ inputs.pr_numbers }}
|
|
40
64
|
run: node .github/auto-changeset/index.mjs
|
|
@@ -55,10 +55,32 @@ jobs:
|
|
|
55
55
|
name: Release
|
|
56
56
|
runs-on: ubuntu-latest
|
|
57
57
|
steps:
|
|
58
|
+
- name: Validate GitHub App configuration
|
|
59
|
+
env:
|
|
60
|
+
APP_CLIENT_ID: ${{ vars.REPOCTL_APP_CLIENT_ID }}
|
|
61
|
+
APP_PRIVATE_KEY_CONFIGURED: ${{ secrets.REPOCTL_APP_PRIVATE_KEY != '' }}
|
|
62
|
+
run: |
|
|
63
|
+
if { [ -n "$APP_CLIENT_ID" ] && [ "$APP_PRIVATE_KEY_CONFIGURED" != 'true' ]; } ||
|
|
64
|
+
{ [ -z "$APP_CLIENT_ID" ] && [ "$APP_PRIVATE_KEY_CONFIGURED" = 'true' ]; }; then
|
|
65
|
+
echo 'Configure both REPOCTL_APP_CLIENT_ID and REPOCTL_APP_PRIVATE_KEY.' >&2
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
- name: Create GitHub App token
|
|
70
|
+
if: ${{ vars.REPOCTL_APP_CLIENT_ID != '' }}
|
|
71
|
+
id: app-token
|
|
72
|
+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
|
|
73
|
+
with:
|
|
74
|
+
client-id: ${{ vars.REPOCTL_APP_CLIENT_ID }}
|
|
75
|
+
private-key: ${{ secrets.REPOCTL_APP_PRIVATE_KEY }}
|
|
76
|
+
permission-contents: write
|
|
77
|
+
permission-pull-requests: write
|
|
78
|
+
|
|
58
79
|
- name: Checkout Repo
|
|
59
80
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
60
81
|
with:
|
|
61
82
|
fetch-depth: 0
|
|
83
|
+
token: ${{ steps.app-token.outputs.token || secrets.REPOCTL_RELEASE_TOKEN || secrets.CHANGESETS_RELEASE_TOKEN || github.token }}
|
|
62
84
|
|
|
63
85
|
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
64
86
|
|
|
@@ -77,7 +99,7 @@ jobs:
|
|
|
77
99
|
|
|
78
100
|
- name: Run repo release CI
|
|
79
101
|
env:
|
|
80
|
-
GITHUB_TOKEN: ${{ secrets.REPOCTL_RELEASE_TOKEN || secrets.CHANGESETS_RELEASE_TOKEN || github.token }}
|
|
102
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token || secrets.REPOCTL_RELEASE_TOKEN || secrets.CHANGESETS_RELEASE_TOKEN || github.token }}
|
|
81
103
|
REPO_RELEASE_MODE: ${{ inputs.mode || 'auto' }}
|
|
82
104
|
REPO_RELEASE_PACKAGE: ${{ inputs.package }}
|
|
83
105
|
REPO_RELEASE_VERSION: ${{ inputs.version }}
|
package/assets/package.json
CHANGED
|
@@ -77,21 +77,21 @@
|
|
|
77
77
|
"@icebreakers/eslint-config": "workspace:*",
|
|
78
78
|
"@icebreakers/monorepo": "workspace:*",
|
|
79
79
|
"@icebreakers/stylelint-config": "workspace:*",
|
|
80
|
-
"@types/node": "^26.6.
|
|
81
|
-
"@vitest/coverage-v8": "~5.0.
|
|
80
|
+
"@types/node": "^26.6.3",
|
|
81
|
+
"@vitest/coverage-v8": "~5.0.2",
|
|
82
82
|
"eslint": "^10.11.0",
|
|
83
83
|
"execa": "^10.0.1",
|
|
84
84
|
"husky": "^9.1.7",
|
|
85
|
-
"lint-staged": "^17.
|
|
85
|
+
"lint-staged": "^17.6.0",
|
|
86
86
|
"only-allow": "^1.2.2",
|
|
87
87
|
"repoctl": "workspace:*",
|
|
88
88
|
"stylelint": "^17.15.0",
|
|
89
89
|
"tailwindcss": "^4.3.3",
|
|
90
90
|
"tsd": "^0.33.0",
|
|
91
91
|
"tsdown": "0.23.0",
|
|
92
|
-
"turbo": "^2.11.
|
|
92
|
+
"turbo": "^2.11.5",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
|
-
"vitest": "~5.0.
|
|
94
|
+
"vitest": "~5.0.2",
|
|
95
95
|
"yaml": "^2.9.1"
|
|
96
96
|
},
|
|
97
97
|
"publishConfig": {
|
package/assets/renovate.json
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
],
|
|
8
8
|
"rangeStrategy": "bump",
|
|
9
9
|
"gitIgnoredAuthors": [
|
|
10
|
-
"41898282+github-actions[bot]@users.noreply.github.com"
|
|
10
|
+
"41898282+github-actions[bot]@users.noreply.github.com",
|
|
11
|
+
"335527025+auto-upgrade-deps[bot]@users.noreply.github.com"
|
|
11
12
|
],
|
|
12
13
|
"npm": {
|
|
13
14
|
"commitMessageTopic": "{{prettyDepType}} {{depName}}"
|
package/package.json
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@faker-js/faker": "^10.6.0",
|
|
40
|
-
"@tanstack/vue-query": "^5.
|
|
41
|
-
"@tanstack/vue-query-devtools": "^6.
|
|
40
|
+
"@tanstack/vue-query": "^5.104.0",
|
|
41
|
+
"@tanstack/vue-query-devtools": "^6.3.0",
|
|
42
42
|
"@tanstack/vue-table": "^9.2.4",
|
|
43
43
|
"@tanstack/vue-virtual": "^3.13.39",
|
|
44
44
|
"@trpc/client": "^11.19.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@cloudflare/vite-plugin": "^1.56.0",
|
|
55
|
-
"@hono/node-server": "^2.1.
|
|
55
|
+
"@hono/node-server": "^2.1.3",
|
|
56
56
|
"@hono/trpc-server": "^0.4.2",
|
|
57
57
|
"@tailwindcss/vite": "^4.3.3",
|
|
58
58
|
"@trpc/server": "^11.19.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
61
61
|
"@vue/tsconfig": "^0.9.1",
|
|
62
62
|
"consola": "^3.4.2",
|
|
63
|
-
"hono": "^4.13.
|
|
63
|
+
"hono": "^4.13.11",
|
|
64
64
|
"tailwindcss": "^4.3.3",
|
|
65
65
|
"typescript": "~6.0.3",
|
|
66
|
-
"vite": "^8.3.
|
|
66
|
+
"vite": "^8.3.1",
|
|
67
67
|
"vite-plugin-vue-devtools": "^8.2.1",
|
|
68
68
|
"vite-tsconfig-paths": "^6.1.1",
|
|
69
69
|
"vue-tsc": "3.3.11",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"types": "./dist/index.d.ts"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@hono/node-server": "^2.1.
|
|
67
|
+
"@hono/node-server": "^2.1.3",
|
|
68
68
|
"consola": "^3.4.2",
|
|
69
|
-
"hono": "^4.13.
|
|
69
|
+
"hono": "^4.13.11",
|
|
70
70
|
"tsdown": "0.23.0",
|
|
71
71
|
"wrangler": "^4.135.0",
|
|
72
72
|
"zod": "^4.6.5"
|