Skip to content

Commit 1691243

Browse files
committed
Add Cloudflare Pipelines commands
1 parent a8cac0f commit 1691243

File tree

12 files changed

+1161
-9
lines changed

12 files changed

+1161
-9
lines changed

.changeset/polite-tigers-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": minor
3+
---
4+
5+
Add Pipelines commands to Wrangler
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Prerelease Pipelines
2+
on:
3+
push:
4+
branches:
5+
- pipelines
6+
7+
jobs:
8+
release:
9+
if: ${{ github.repository_owner == 'cloudflare' }}
10+
name: Release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install Dependencies
20+
uses: ./.github/actions/install-dependencies
21+
22+
- name: Build
23+
run: pnpm run build
24+
25+
- name: Check for errors
26+
run: pnpm run check
27+
env:
28+
NODE_OPTIONS: "--max_old_space_size=8192"
29+
30+
- name: Modify package.json version
31+
run: node .github/version-script.js
32+
33+
- name: Publish to NPM
34+
run: pnpm publish --tag pipelines
35+
env:
36+
NODE_ENV: "production"
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
38+
working-directory: packages/wrangler

packages/wrangler/src/__tests__/deploy.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ describe("deploy", () => {
383383

384384
expect(std.out).toMatchInlineSnapshot(`
385385
"Attempting to login via OAuth...
386-
Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20ai%3Awrite%20queues%3Awrite%20offline_access&state=MOCK_STATE_PARAM&code_challenge=MOCK_CODE_CHALLENGE&code_challenge_method=S256
386+
Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20ai%3Awrite%20queues%3Awrite%20pipelines%3Awrite%20offline_access&state=MOCK_STATE_PARAM&code_challenge=MOCK_CODE_CHALLENGE&code_challenge_method=S256
387387
Successfully logged in.
388388
Total Upload: xx KiB / gzip: xx KiB
389389
Worker Startup Time: 100 ms
@@ -424,7 +424,7 @@ describe("deploy", () => {
424424

425425
expect(std.out).toMatchInlineSnapshot(`
426426
"Attempting to login via OAuth...
427-
Opening a link in your default browser: https://dash.staging.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20ai%3Awrite%20queues%3Awrite%20offline_access&state=MOCK_STATE_PARAM&code_challenge=MOCK_CODE_CHALLENGE&code_challenge_method=S256
427+
Opening a link in your default browser: https://dash.staging.cloudflare.com/oauth2/auth?response_type=code&client_id=54d11594-84e4-41aa-b438-e81b8fa78ee7&redirect_uri=http%3A%2F%2Flocalhost%3A8976%2Foauth%2Fcallback&scope=account%3Aread%20user%3Aread%20workers%3Awrite%20workers_kv%3Awrite%20workers_routes%3Awrite%20workers_scripts%3Awrite%20workers_tail%3Aread%20d1%3Awrite%20pages%3Awrite%20zone%3Aread%20ssl_certs%3Awrite%20ai%3Awrite%20queues%3Awrite%20pipelines%3Awrite%20offline_access&state=MOCK_STATE_PARAM&code_challenge=MOCK_CODE_CHALLENGE&code_challenge_method=S256
428428
Successfully logged in.
429429
Total Upload: xx KiB / gzip: xx KiB
430430
Worker Startup Time: 100 ms

packages/wrangler/src/__tests__/index.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe("wrangler", () => {
6161
wrangler pubsub 📮 Manage Pub/Sub brokers [private beta]
6262
wrangler dispatch-namespace 🏗️ Manage dispatch namespaces
6363
wrangler ai 🤖 Manage AI models
64+
wrangler pipelines 🚰 Manage Worker Pipelines
6465
6566
wrangler login 🔓 Login to Cloudflare
6667
wrangler logout 🚪 Logout from Cloudflare
@@ -118,6 +119,7 @@ describe("wrangler", () => {
118119
wrangler pubsub 📮 Manage Pub/Sub brokers [private beta]
119120
wrangler dispatch-namespace 🏗️ Manage dispatch namespaces
120121
wrangler ai 🤖 Manage AI models
122+
wrangler pipelines 🚰 Manage Worker Pipelines
121123
122124
wrangler login 🔓 Login to Cloudflare
123125
wrangler logout 🚪 Logout from Cloudflare

0 commit comments

Comments
 (0)