Skip to content

Commit 2e27ba0

Browse files
committed
chore(pipeline): use generated preview and pages jobs
1 parent da939ec commit 2e27ba0

6 files changed

Lines changed: 174 additions & 261 deletions

File tree

.async-pipeline/tasks.lock.json

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
"runner": "package",
1818
"field": "scripts",
1919
"commands": [
20-
{
21-
"name": "pipeline:pages",
22-
"value": "async-pipeline run pages"
23-
},
24-
{
25-
"name": "pipeline:preview",
26-
"value": "async-pipeline run preview"
27-
},
2820
{
2921
"name": "pipeline:publish",
3022
"value": "async-pipeline run publish"
@@ -73,10 +65,6 @@
7365
"name": "pipeline:task:pack.check",
7466
"value": "async-pipeline run-task pack.check"
7567
},
76-
{
77-
"name": "pipeline:task:publish.preview",
78-
"value": "async-pipeline run-task publish.preview"
79-
},
8068
{
8169
"name": "pipeline:task:publish.snapshot",
8270
"value": "async-pipeline run-task publish.snapshot"
@@ -133,6 +121,10 @@
133121
"name": "pipeline:pack:check",
134122
"value": "async-pipeline run-task pack.check"
135123
},
124+
{
125+
"name": "pipeline:pages",
126+
"value": "async-pipeline run-task docs.site"
127+
},
136128
{
137129
"name": "pipeline:publish:github:main",
138130
"value": "async-pipeline publish github main --package ."
@@ -177,14 +169,6 @@
177169
}
178170
],
179171
"commands": [
180-
{
181-
"name": "pipeline:pages",
182-
"value": "async-pipeline run pages"
183-
},
184-
{
185-
"name": "pipeline:preview",
186-
"value": "async-pipeline run preview"
187-
},
188172
{
189173
"name": "pipeline:publish",
190174
"value": "async-pipeline run publish"
@@ -233,10 +217,6 @@
233217
"name": "pipeline:task:pack.check",
234218
"value": "async-pipeline run-task pack.check"
235219
},
236-
{
237-
"name": "pipeline:task:publish.preview",
238-
"value": "async-pipeline run-task publish.preview"
239-
},
240220
{
241221
"name": "pipeline:task:publish.snapshot",
242222
"value": "async-pipeline run-task publish.snapshot"
@@ -293,6 +273,10 @@
293273
"name": "pipeline:pack:check",
294274
"value": "async-pipeline run-task pack.check"
295275
},
276+
{
277+
"name": "pipeline:pages",
278+
"value": "async-pipeline run-task docs.site"
279+
},
296280
{
297281
"name": "pipeline:publish:github:main",
298282
"value": "async-pipeline publish github main --package ."
@@ -334,6 +318,6 @@
334318
"value": "async-pipeline run verify --force"
335319
}
336320
],
337-
"hash": "sha256:c0794418dd6a745cb8892a404c68926b88a3a79b9d522281edc0171aa88f3e2a",
338-
"generatedAt": "2026-06-16T21:14:33.046Z"
321+
"hash": "sha256:f0f11aba48cb064da0cbbc72ec459c6034d24246d93c54e8e8d143981e769a9f",
322+
"generatedAt": "2026-06-18T04:13:44.059Z"
339323
}

.github/async-pipeline.lock.json

Lines changed: 36 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
{
2-
"version": 7,
2+
"version": 11,
33
"generator": "@async/pipeline",
44
"config": "pipeline.js",
55
"workflow": ".github/workflows/async-pipeline.yml",
6-
"hash": "sha256:f066d0bd1da94fc71044e676d101b80434edfdccae02b11b9ef71280baf72542",
7-
"generatedAt": "2026-06-16T21:47:06.723Z",
6+
"hash": "sha256:ea33b663d7b3eb7d5ec27335d59641456e6dae3d4df39a7c93338429533dfc3f",
7+
"generatedAt": "2026-06-18T04:13:44.056Z",
88
"triggers": {
9-
"pull_request": {},
9+
"pull_request": {
10+
"types": [
11+
"opened",
12+
"ready_for_review",
13+
"reopened",
14+
"synchronize"
15+
]
16+
},
1017
"push": {
1118
"branches": [
1219
"main"
@@ -16,55 +23,6 @@
1623
"workflow_dispatch": {}
1724
},
1825
"jobs": [
19-
{
20-
"id": "pages",
21-
"target": [
22-
"docs.site"
23-
],
24-
"trigger": [
25-
"manual",
26-
"pr",
27-
"main"
28-
],
29-
"env": {},
30-
"github": {
31-
"pages": {
32-
"build": {
33-
"kind": "static",
34-
"path": ".async/pages"
35-
},
36-
"environment": {
37-
"name": "github-pages",
38-
"url": "${{ steps.deployment.outputs.page_url }}"
39-
}
40-
}
41-
},
42-
"if": "(github.event_name == 'workflow_dispatch' && github.event.inputs.job == 'pages') || (github.event_name == 'pull_request') || (github.event_name == 'push' && (github.ref == 'refs/heads/main'))"
43-
},
44-
{
45-
"id": "preview",
46-
"target": [
47-
"publish.preview"
48-
],
49-
"trigger": [
50-
"pr"
51-
],
52-
"env": {
53-
"GITHUB_TOKEN": {
54-
"kind": "async-pipeline.env.secret",
55-
"name": "GITHUB_TOKEN"
56-
}
57-
},
58-
"github": {
59-
"permissions": {
60-
"contents": "read",
61-
"issues": "write",
62-
"packages": "write",
63-
"pullRequests": "write"
64-
}
65-
},
66-
"if": "github.event_name == 'pull_request'"
67-
},
6826
{
6927
"id": "publish",
7028
"target": [
@@ -161,8 +119,12 @@
161119
],
162120
"packageManager": "pnpm",
163121
"packageManagerVersion": "10.20.0",
164-
"setup": "node",
122+
"command": "pnpm async-pipeline",
123+
"setup": "pnpm",
165124
"nodeVersion": "24",
125+
"runtime": [
126+
"node@24"
127+
],
166128
"taskCache": true,
167129
"dependencyCache": true,
168130
"dependencyCachePath": "pnpm-lock.yaml",
@@ -175,10 +137,28 @@
175137
]
176138
},
177139
"packagePreviews": {
178-
"enabled": false,
140+
"enabled": true,
179141
"registry": "https://npm.pkg.github.com",
180142
"tokenEnv": "GITHUB_TOKEN",
181-
"comment": true
143+
"comment": true,
144+
"package": ".",
145+
"target": "build"
146+
},
147+
"pages": {
148+
"enabled": true,
149+
"target": "docs.site",
150+
"job": "pages",
151+
"build": {
152+
"kind": "static",
153+
"path": ".async/pages"
154+
},
155+
"triggers": {
156+
"pullRequest": true,
157+
"main": {
158+
"branch": "main"
159+
},
160+
"manual": true
161+
}
182162
},
183163
"manualDispatchJobs": [
184164
"pages",

0 commit comments

Comments
 (0)