Skip to content

Commit 22dcf4a

Browse files
committed
chore(pipeline): update to 0.9.1
1 parent 30257e1 commit 22dcf4a

5 files changed

Lines changed: 101 additions & 88 deletions

File tree

.async-pipeline/tasks.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,5 @@
143143
}
144144
],
145145
"hash": "sha256:33281a140b33551fb293af7c816ce10538d72565ab9b32c9506384d8b2bed0f0",
146-
"generatedAt": "2026-06-18T04:29:55.371Z"
146+
"generatedAt": "2026-06-18T10:29:38.402Z"
147147
}

.github/async-pipeline.lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"version": 11,
2+
"version": 12,
33
"generator": "@async/pipeline",
44
"config": "pipeline.ts",
55
"workflow": ".github/workflows/async-pipeline.yml",
6-
"hash": "sha256:e309027c876ee1aba63f447b188df8987d99e3a6d2aadae0e8ff12ee4b5529ad",
7-
"generatedAt": "2026-06-18T04:29:55.369Z",
6+
"hash": "sha256:245ede33a5a3112cc5fc62c901a89daa0d697469a05dadc2ca5616c16b91152e",
7+
"generatedAt": "2026-06-18T10:29:38.400Z",
88
"triggers": {
99
"pull_request": {
1010
"types": [

.github/workflows/async-pipeline.yml

Lines changed: 91 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,65 @@ jobs:
6161
- name: Install dependencies
6262
run: pnpm install --frozen-lockfile
6363

64-
- name: Check generated workflow
65-
run: pnpm async-pipeline github check
64+
- name: Run pipeline task pack
65+
uses: async/actions/run@v0
66+
with:
67+
command: "pnpm async-pipeline github check && pnpm async-pipeline run-task pack"
68+
check-generated: false
69+
artifact-name: async-pipeline-${{ github.job }}-pack-runs
70+
env:
71+
CI: true
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6674

67-
- name: Run pipeline job
68-
run: pnpm async-pipeline run publish
75+
- name: Create or update GitHub Release
76+
uses: async/actions/publish@v0
77+
with:
78+
package-path: "."
79+
mode: github-release
80+
registry: "https://registry.npmjs.org"
81+
dist-tag: "latest"
6982
env:
7083
CI: true
7184
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7285
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7386

74-
- name: Explain async-pipeline run
75-
if: failure()
76-
run: pnpm async-pipeline explain --run latest || true
87+
- name: Publish GitHub Packages mirror
88+
uses: async/actions/publish@v0
89+
with:
90+
package-path: "."
91+
mode: github-packages
92+
registry: "https://npm.pkg.github.com"
93+
dist-tag: "latest"
94+
env:
95+
CI: true
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7798

78-
- name: Upload async-pipeline run evidence
79-
if: always()
80-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
99+
- name: Publish npm package
100+
uses: async/actions/publish@v0
81101
with:
82-
name: async-pipeline-${{ github.job }}-runs
83-
path: .async/runs
84-
if-no-files-found: ignore
102+
package-path: "."
103+
mode: npm
104+
registry: "https://registry.npmjs.org"
105+
dist-tag: "latest"
106+
provenance: true
107+
env:
108+
CI: true
109+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
111+
112+
- name: Run release doctor
113+
uses: async/actions/publish@v0
114+
with:
115+
package-path: "."
116+
mode: doctor
117+
registry: "https://registry.npmjs.org"
118+
dist-tag: "latest"
119+
env:
120+
CI: true
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
85123

86124
release-doctor:
87125
name: release-doctor
@@ -109,27 +147,17 @@ jobs:
109147
- name: Install dependencies
110148
run: pnpm install --frozen-lockfile
111149

112-
- name: Check generated workflow
113-
run: pnpm async-pipeline github check
114-
115-
- name: Run pipeline job
116-
run: pnpm async-pipeline run release-doctor
150+
- name: Run release doctor
151+
uses: async/actions/publish@v0
152+
with:
153+
package-path: "."
154+
mode: doctor
155+
registry: "https://registry.npmjs.org"
156+
dist-tag: "latest"
117157
env:
118158
CI: true
119159
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120160

121-
- name: Explain async-pipeline run
122-
if: failure()
123-
run: pnpm async-pipeline explain --run latest || true
124-
125-
- name: Upload async-pipeline run evidence
126-
if: always()
127-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
128-
with:
129-
name: async-pipeline-${{ github.job }}-runs
130-
path: .async/runs
131-
if-no-files-found: ignore
132-
133161
snapshot:
134162
name: snapshot
135163
if: github.event_name == 'push' && (github.ref == 'refs/heads/main')
@@ -156,26 +184,27 @@ jobs:
156184
- name: Install dependencies
157185
run: pnpm install --frozen-lockfile
158186

159-
- name: Check generated workflow
160-
run: pnpm async-pipeline github check
161-
162-
- name: Run pipeline job
163-
run: pnpm async-pipeline run snapshot
187+
- name: Run pipeline task pack
188+
uses: async/actions/run@v0
189+
with:
190+
command: "pnpm async-pipeline github check && pnpm async-pipeline run-task pack"
191+
check-generated: false
192+
artifact-name: async-pipeline-${{ github.job }}-pack-runs
164193
env:
165194
CI: true
166195
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167196

168-
- name: Explain async-pipeline run
169-
if: failure()
170-
run: pnpm async-pipeline explain --run latest || true
171-
172-
- name: Upload async-pipeline run evidence
173-
if: always()
174-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
197+
- name: Publish main package preview
198+
uses: async/actions/preview@v0
175199
with:
176-
name: async-pipeline-${{ github.job }}-runs
177-
path: .async/runs
178-
if-no-files-found: ignore
200+
package-path: "."
201+
target-registry: "https://npm.pkg.github.com"
202+
mode: main
203+
comment: false
204+
token-env-name: "GITHUB_TOKEN"
205+
env:
206+
CI: true
207+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179208

180209
verify:
181210
name: verify
@@ -200,26 +229,15 @@ jobs:
200229
- name: Install dependencies
201230
run: pnpm install --frozen-lockfile
202231

203-
- name: Check generated workflow
204-
run: pnpm async-pipeline github check
205-
206232
- name: Run pipeline job
207-
run: pnpm async-pipeline run verify
233+
uses: async/actions/run@v0
234+
with:
235+
command: "pnpm async-pipeline github check && pnpm async-pipeline run verify"
236+
check-generated: false
237+
artifact-name: async-pipeline-${{ github.job }}-runs
208238
env:
209239
CI: true
210240

211-
- name: Explain async-pipeline run
212-
if: failure()
213-
run: pnpm async-pipeline explain --run latest || true
214-
215-
- name: Upload async-pipeline run evidence
216-
if: always()
217-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
218-
with:
219-
name: async-pipeline-${{ github.job }}-runs
220-
path: .async/runs
221-
if-no-files-found: ignore
222-
223241
package-preview:
224242
name: package-preview
225243
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
@@ -250,28 +268,23 @@ jobs:
250268
- name: Install dependencies
251269
run: pnpm install --frozen-lockfile
252270

253-
- name: Check generated workflow
254-
run: pnpm async-pipeline github check
255-
256271
- name: Run package preview target
257-
run: pnpm async-pipeline run-task pack
272+
uses: async/actions/run@v0
273+
with:
274+
command: "pnpm async-pipeline github check && pnpm async-pipeline run-task pack"
275+
check-generated: false
276+
artifact-name: async-pipeline-${{ github.job }}-runs
258277
env:
259278
CI: true
260279

261280
- name: Publish package preview
262-
run: pnpm async-pipeline publish github pr --package . --registry https://npm.pkg.github.com
281+
uses: async/actions/preview@v0
282+
with:
283+
package-path: "."
284+
target-registry: "https://npm.pkg.github.com"
285+
mode: pr
286+
comment: true
287+
token-env-name: "GITHUB_TOKEN"
263288
env:
264289
CI: true
265290
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
266-
267-
- name: Explain async-pipeline run
268-
if: failure()
269-
run: pnpm async-pipeline explain --run latest || true
270-
271-
- name: Upload async-pipeline run evidence
272-
if: always()
273-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
274-
with:
275-
name: async-pipeline-${{ github.job }}-runs
276-
path: .async/runs
277-
if-no-files-found: ignore

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
},
7878
"devDependencies": {
7979
"@async/api-contract": "0.1.1",
80-
"@async/pipeline": "0.8.9",
80+
"@async/pipeline": "0.9.1",
8181
"@types/node": "24.12.4",
8282
"typescript": "6.0.3"
8383
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)