Skip to content

Commit 45ed724

Browse files
ytkimirtiCahidArda
andauthored
DX-1264: Unify exports (#1290)
* chore: move to new build pipeline * fix: turn all example versions to "latest" * fix: remove unneccesary install step before doing bun add * fix: add 10s sleep after workflow publish * fix: use copying into dist folder instead * fix: ci * fix: ci * fix: change canary release tag from next to canary * fix: update redis dependency as latest * chore: remove export fields that are not required We can remove these two because the files they were referencing did not exist in the older versions. So this is not a breaking change * fix: husky warning * fix: revert deleting prepare script before publishing --------- Co-authored-by: CahidArda <[email protected]>
1 parent d949397 commit 45ed724

File tree

26 files changed

+50
-60
lines changed

26 files changed

+50
-60
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ jobs:
5454
working-directory: ./dist
5555
run: |
5656
npm pkg delete scripts.prepare
57-
npm publish --access public --tag=next
57+
npm publish --access public --tag=canary

.github/workflows/tests.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ jobs:
5858
run: bun run build
5959

6060
- name: Install example
61-
run: |
62-
bun install
63-
bun add @upstash/redis@../../dist
61+
run: bun add @upstash/redis@../../dist
6462
working-directory: ./examples/vercel-functions-app-router
6563

6664
- name: Build example
@@ -100,9 +98,7 @@ jobs:
10098
run: bun run build
10199

102100
- name: Install example
103-
run: |
104-
bun install
105-
bun add @upstash/redis@../../dist
101+
run: bun add @upstash/redis@../../dist
106102
working-directory: ./examples/vercel-functions-pages-router
107103

108104
- name: Build example
@@ -255,7 +251,6 @@ jobs:
255251

256252
- name: Install example
257253
run: |
258-
bun install
259254
bun add @upstash/redis@../../dist
260255
npm install -g wrangler
261256
working-directory: examples/cloudflare-workers
@@ -348,7 +343,6 @@ jobs:
348343

349344
- name: Install example
350345
run: |
351-
bun install
352346
bun add @upstash/redis@../../dist
353347
npm install -g wrangler
354348
@@ -449,7 +443,6 @@ jobs:
449443
- name: Install example
450444
working-directory: ./examples/fastly
451445
run: |
452-
bun install
453446
bun add @upstash/redis@../../dist
454447
curl -L https://github.com/fastly/cli/releases/download/v1.7.0/fastly_v1.7.0_linux-amd64.tar.gz > fastly.tar.gz
455448
tar -xf ./fastly.tar.gz
@@ -613,3 +606,7 @@ jobs:
613606
run: |
614607
npm pkg delete scripts.prepare
615608
npm publish --tag=ci --verbose
609+
610+
- name: Sleep for 10s
611+
run: sleep 10s
612+
shell: bash

examples/auto-pipeline/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@upstash/redis": "^1.30.1",
12+
"@upstash/redis": "latest",
1313
"next": "14.2.3",
1414
"react": "^18",
1515
"react-dom": "^18"

examples/aws-cdk-typescript/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/aws-cdk-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"typescript": "~5.4.5"
2121
},
2222
"dependencies": {
23-
"@upstash/redis": "^1.33.0",
23+
"@upstash/redis": "latest",
2424
"aws-cdk-lib": "2.147.2",
2525
"constructs": "^10.0.0",
2626
"source-map-support": "^0.5.21"

examples/aws-lambda/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/aws-lambda/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"@upstash/redis": "^1.31.6"
3+
"@upstash/redis": "latest"
44
}
55
}
66

examples/azure-functions/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/azure-functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@azure/functions": "^4.0.0",
16-
"@upstash/redis": "^1.34.0"
16+
"@upstash/redis": "latest"
1717
},
1818
"devDependencies": {
1919
"@types/node": "18.x",

examples/cloudflare-workers-with-typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"publish": "wrangler publish"
1313
},
1414
"dependencies": {
15-
"@upstash/redis": "../../dist"
15+
"@upstash/redis": "latest"
1616
}
1717
}

0 commit comments

Comments
 (0)