@uniweb/build 0.14.29 → 0.14.30
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/package.json +3 -3
- package/src/hosts/ci-workflow.js +16 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniweb/build",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.30",
|
|
4
4
|
"description": "Build tooling for the Uniweb Component Web Platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"js-yaml": "^4.1.0",
|
|
60
60
|
"sharp": "^0.33.2",
|
|
61
61
|
"yaml": "^2.5.0",
|
|
62
|
-
"@uniweb/
|
|
63
|
-
"@uniweb/
|
|
62
|
+
"@uniweb/theming": "0.1.8",
|
|
63
|
+
"@uniweb/content-writer": "0.2.6"
|
|
64
64
|
},
|
|
65
65
|
"optionalDependencies": {
|
|
66
66
|
"@uniweb/runtime": "0.8.26",
|
package/src/hosts/ci-workflow.js
CHANGED
|
@@ -31,6 +31,11 @@ export function setupSteps({
|
|
|
31
31
|
const lines = []
|
|
32
32
|
if (checkout) lines.push(' - uses: actions/checkout@v4')
|
|
33
33
|
|
|
34
|
+
// The install command has to match the repo's lockfile: `npm ci` fails
|
|
35
|
+
// outright without package-lock.json, and so does
|
|
36
|
+
// `pnpm install --frozen-lockfile` without pnpm-lock.yaml. Callers must
|
|
37
|
+
// pass the WORKSPACE's package manager (detected from its lockfile),
|
|
38
|
+
// not the one that happened to launch the CLI.
|
|
34
39
|
if (packageManager === 'pnpm') {
|
|
35
40
|
lines.push(' - uses: pnpm/action-setup@v4')
|
|
36
41
|
lines.push(' with:')
|
|
@@ -40,6 +45,13 @@ export function setupSteps({
|
|
|
40
45
|
lines.push(` node-version: '${nodeVersion}'`)
|
|
41
46
|
lines.push(' cache: pnpm')
|
|
42
47
|
lines.push(' - run: pnpm install --frozen-lockfile')
|
|
48
|
+
} else if (packageManager === 'yarn') {
|
|
49
|
+
lines.push(' - uses: actions/setup-node@v4')
|
|
50
|
+
lines.push(' with:')
|
|
51
|
+
lines.push(` node-version: '${nodeVersion}'`)
|
|
52
|
+
lines.push(' cache: yarn')
|
|
53
|
+
// Accepted by Yarn 1 and aliased to --immutable by Berry.
|
|
54
|
+
lines.push(' - run: yarn install --frozen-lockfile')
|
|
43
55
|
} else {
|
|
44
56
|
lines.push(' - uses: actions/setup-node@v4')
|
|
45
57
|
lines.push(' with:')
|
|
@@ -59,7 +71,10 @@ export function setupSteps({
|
|
|
59
71
|
* @returns {string}
|
|
60
72
|
*/
|
|
61
73
|
export function uniwebBuildCommand({ packageManager = 'pnpm', host }) {
|
|
62
|
-
const runner =
|
|
74
|
+
const runner =
|
|
75
|
+
packageManager === 'pnpm' ? 'pnpm exec'
|
|
76
|
+
: packageManager === 'yarn' ? 'yarn exec'
|
|
77
|
+
: 'npx'
|
|
63
78
|
return `${runner} uniweb build --host=${host}`
|
|
64
79
|
}
|
|
65
80
|
|