Skip to content

chore(deps): update dependency tailwindcss to v3.4.17 #2112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 121 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
40c7b28
feat(react-email): added a theme switcher to the dev preview (#1749)
KayleeWilliams Feb 17, 2025
6b4179f
feat(tailwind): extract pseudo classes to stylesheet (#1864)
Sjoertjuh Feb 26, 2025
3b211da
fix(tailwind): Infinite loop during sanitization
gabrielmfern Feb 27, 2025
be3295e
chore(tailwind): Improve code for running Tailwind integration test (…
gabrielmfern Feb 27, 2025
8edb72f
chore(deps): update dependency @types/node to v20.17.22 (#1940)
renovate[bot] Mar 3, 2025
c4d48f4
chore(deps): update dependency @changesets/cli to v2.28.1 (#1939)
renovate[bot] Mar 3, 2025
e9fea71
chore(root): Lint
gabrielmfern Mar 31, 2025
dfb56bc
fix(react-email): Rebase artifact with default active view
gabrielmfern Mar 31, 2025
b46c1e8
fix locks
gabrielmfern Apr 1, 2025
877d7f6
fix(root): Duplicated turbo package config
gabrielmfern Apr 8, 2025
2f93cda
chore: Enter pre-release
gabrielmfern Apr 8, 2025
8a9a784
chore(root): Version packages (canary) (#2064)
github-actions[bot] Apr 8, 2025
fe19484
chore(deps-dev): bump vite from 5.4.14 to 5.4.17 (#2062)
dependabot[bot] Apr 9, 2025
76d4db9
chore(deps): update dependency vite to v5.4.17 [security] (#2033)
renovate[bot] Apr 9, 2025
3de6f4d
chore: lint workflow (#2024)
bukinoshita Apr 9, 2025
3ed0898
chore(create-email): Incresae timeout for type checking test
gabrielmfern Apr 9, 2025
26e1369
fix(create-email): linter (#2023)
bukinoshita Apr 9, 2025
5d052b2
fix(tailwind): linter (#2021)
bukinoshita Apr 9, 2025
8ae66bb
fix(benchmarks): linter (#2022)
bukinoshita Apr 9, 2025
99f36c2
fix(demo): linter (#2018)
bukinoshita Apr 9, 2025
ae85a70
fix(web): linter (#2019)
bukinoshita Apr 9, 2025
2886507
feat(ci): Separate actions for versioning canary/main (#2075)
gabrielmfern Apr 14, 2025
c171d34
feat(ci): Automated canary releases (#2076)
gabrielmfern Apr 14, 2025
c1ff7a3
fix(react-email): Dependents of dependents of email templates not cau…
gabrielmfern Apr 14, 2025
a03fac8
fix(react-email): No error with missing default function export (#2084)
gabrielmfern Apr 14, 2025
d45afa2
feat(create-email): Use latest from specified tag for `react-email` a…
gabrielmfern Apr 14, 2025
835c0fa
fix(root): changeset (#2086)
gabrielmfern Apr 14, 2025
ef2b297
chore(root): Version packages (canary) (#2087)
github-actions[bot] Apr 14, 2025
c9533a1
feat(render): Separate pretty from render (#1906)
thena-seer Apr 15, 2025
0e7d7bb
build(deps): use caret range for package dependencies (#2028)
CHC383 Apr 15, 2025
852e731
chore(root): Version packages (canary) (#2088)
github-actions[bot] Apr 15, 2025
ffe64c2
fix(root): Invalid changeset with now removed starter template package
gabrielmfern Apr 15, 2025
24269ac
chore(root): Version packages (canary) (#2090)
github-actions[bot] Apr 15, 2025
b20916f
chore(root): Try removing publishConfig for automated release to work
gabrielmfern Apr 15, 2025
5c39519
Revert "chore(root): Try removing publishConfig for automated release…
gabrielmfern Apr 15, 2025
b68727e
chore(react-email): Use deprecated `pretty` to allow for backwards-co…
gabrielmfern Apr 15, 2025
e53db8d
fix(tailwind): Declarations with multiple variables not being resolve…
gabrielmfern Apr 16, 2025
2596cdd
chore(root): Version packages (canary) (#2092)
github-actions[bot] Apr 16, 2025
4eacaeb
fix(react-email): JSON import support on dependency graph (#2094)
gabrielmfern Apr 16, 2025
d251a5e
fix(react-email): Non-emails files being rendered when hot reloading …
gabrielmfern Apr 16, 2025
b701db7
fix(react-email): Dependencies outside dependency graph directory not…
gabrielmfern Apr 16, 2025
b6327de
chore(root): Version packages (canary) (#2096)
github-actions[bot] Apr 16, 2025
21eebef
fix(create-email): Name & version (#2097)
gabrielmfern Apr 16, 2025
34c00ba
chore(root): Version packages (canary) (#2098)
github-actions[bot] Apr 16, 2025
e2737e7
chore(deps): update dependency @types/babel__traverse to v7.20.7 (#2035)
renovate[bot] Apr 16, 2025
cd35fec
chore(deps): update dependency vite to v5.4.18 [security] (#2080)
renovate[bot] Apr 16, 2025
42616ae
chore(deps): update dependency @types/babel__traverse to v7.20.7 (#2034)
renovate[bot] Apr 16, 2025
56985c6
chore(react-email,web): Update babel dependencies
gabrielmfern Apr 16, 2025
16785e9
chore(tailwind): Remove lock from integration tests (#2099)
gabrielmfern Apr 16, 2025
f91dea4
feat(ci): Improved version of dependency check (#2102)
gabrielmfern Apr 17, 2025
87efa5a
chore(root): Use biome beta (#2101)
gabrielmfern Apr 17, 2025
1bce180
chore(root, react-email): Remove remaining prettier dependencies (#2100)
gabrielmfern Apr 17, 2025
804abb8
chore(root): Update pnpm and turborepo (#2103)
gabrielmfern Apr 17, 2025
97ed55e
fix(deps): update dependency zod to v3.24.3 (#2105)
renovate[bot] Apr 18, 2025
427e30b
chore(deps): update dependency autoprefixer to v10.4.21 (#2108)
renovate[bot] Apr 18, 2025
7a1c740
chore(deps): update dependency sonner to v1.7.4 (#2110)
renovate[bot] Apr 18, 2025
7608db5
chore(deps): update dependency stacktrace-parser to v0.1.11 (#2111)
renovate[bot] Apr 18, 2025
abbe07a
chore(deps): update dependency @changesets/cli to v2.29.2 (#2118)
renovate[bot] Apr 18, 2025
fe9f8ec
chore(deps): update dependency @edge-runtime/vm to v3.2.0 (#2119)
renovate[bot] Apr 18, 2025
305ed00
chore(deps): update dependency @swc/core to v1.11.21 (#2121)
renovate[bot] Apr 18, 2025
07d0aee
fix(deps): update dependency tailwind-0.0.12 to v0.1.0 (#2143)
renovate[bot] Apr 18, 2025
da1a37e
fix(deps): update nextjs monorepo to v15.3.1 (#2145)
renovate[bot] Apr 18, 2025
42ca950
chore(config): migrate renovate config (#2106)
renovate[bot] Apr 18, 2025
2491632
chore(deps): update dependency typescript to v5.8.3 (#2133)
renovate[bot] Apr 18, 2025
6cff769
fix(deps): update dependency @babel/preset-typescript to v7.27.0 (#2136)
renovate[bot] Apr 18, 2025
c8a2003
fix(deps): update dependency @supabase/supabase-js to v2.49.4 (#2137)
renovate[bot] Apr 18, 2025
112826c
fix(deps): update dependency lucide-react to ^0.492.0 (#2140)
renovate[bot] Apr 18, 2025
5bd888c
fix(deps): update dependency resend to v4.3.0 (#2142)
renovate[bot] Apr 18, 2025
b523279
fix(deps): update dependency prism-react-renderer to v2.4.1 (#2141)
renovate[bot] Apr 18, 2025
f5f7f6d
fix(deps): update dependency tailwind-0.0.17 to v0.1.0 (#2144)
renovate[bot] Apr 18, 2025
1d721d9
Revert "fix(deps): update dependency tailwind-0.0.17 to v0.1.0 (#2144)"
gabrielmfern Apr 18, 2025
a0e32bb
Revert "fix(deps): update dependency tailwind-0.0.12 to v0.1.0 (#2143)"
gabrielmfern Apr 18, 2025
4e35bb1
chore(deps): update dependency sharp to v0.34.1 (#2128)
renovate[bot] Apr 18, 2025
449af17
fix(deps): update dependency vaul to v1.1.2 (#2117)
renovate[bot] Apr 18, 2025
b3aa0c8
chore(deps): update dependency @lottiefiles/dotlottie-react to v0.13.…
renovate[bot] Apr 18, 2025
fd81520
chore(deps): update dependency @vercel/style-guide to v5.2.0 (#2122)
renovate[bot] Apr 18, 2025
6235761
chore(deps): update dependency @vitejs/plugin-react to v4.4.0 (#2123)
renovate[bot] Apr 18, 2025
69b1778
chore(deps): update dependency happy-dom to v15.11.7 (#2124)
renovate[bot] Apr 18, 2025
9f0f9ff
chore(deps): update dependency shelljs to v0.9.2 (#2129)
renovate[bot] Apr 18, 2025
b98559d
chore(deps): update dependency tsx to v4.19.3 (#2132)
renovate[bot] Apr 18, 2025
b2a5984
chore(deps): update dependency jsdom to v23.2.0 (#2125)
renovate[bot] Apr 18, 2025
5721544
chore(deps): update dependency tailwind-merge to v2.6.0 (#2131)
renovate[bot] Apr 18, 2025
c2ee8de
fix(deps): update dependency react-email-2.1.7-canary.2 to v4 (#2169)
renovate[bot] Apr 19, 2025
68235b3
chore(deps): update dependency postcss-selector-parser to v6.1.2 (#2127)
renovate[bot] Apr 19, 2025
7a57bd0
chore(deps): update dependency source-map-js to v1.2.1 (#2130)
renovate[bot] Apr 19, 2025
9024a99
chore(deps): update dependency vite-plugin-dts to v4.5.3 (#2134)
renovate[bot] Apr 19, 2025
6621f09
fix(deps): update dependency framer-motion to v12.7.4 (#2139)
renovate[bot] Apr 19, 2025
a38a5f4
chore(deps): update dependency webpack to v5.99.6 (#2135)
renovate[bot] Apr 19, 2025
9caa3c0
fix(deps): update dependency @vercel/analytics to v1.5.0 (#2138)
renovate[bot] Apr 19, 2025
c7ad5cd
fix(deps): update dependency mintlify to v4.0.494 (#2115)
renovate[bot] Apr 19, 2025
85bf8a6
fix(deps): update dependency @react-email/components to v0.0.36 (#2114)
renovate[bot] Apr 19, 2025
04b4938
chore(deps): update radix-ui-primitives monorepo (#2113)
renovate[bot] Apr 19, 2025
189f708
chore(deps): update dependency socket.io-client to v4.8.1 (#2109)
renovate[bot] Apr 19, 2025
b19c911
chore(deps): update dependency @vitejs/plugin-react to v4.4.1 (#2174)
renovate[bot] Apr 19, 2025
33200e8
fix(text): Priority of margin properties given by `style` not kept (…
gabrielmfern Apr 21, 2025
5523ca7
chore(root): Version packages (canary) (#2175)
github-actions[bot] Apr 21, 2025
816fc14
chore(deps): update dependency postcss to v8.5.3 (#2126)
renovate[bot] Apr 22, 2025
55cd557
fix(deps): update dependency ora to v8 (#2168)
renovate[bot] Apr 22, 2025
bc5c8ca
fix(deps): update dependency mime-types to v3 (#2167)
renovate[bot] Apr 22, 2025
aec11fb
chore(deps): update dependency tsup to v8.4.0 (#2160)
renovate[bot] Apr 22, 2025
adac67d
fix(ci): Possible security issues (#2180)
gabrielmfern Apr 22, 2025
3d0d0cd
fix(deps): update dependency log-symbols to v7 (#2166)
renovate[bot] Apr 22, 2025
16da04b
chore(tailwind): remove eslint dependencies from vite integration
gabrielmfern Apr 22, 2025
6871b8a
Revert "fix(deps): update dependency react-email-2.1.7-canary.2 to v4…
gabrielmfern Apr 23, 2025
85379c4
chore(react-email): Upgrade framer-motion to fix demo deploy
gabrielmfern Apr 23, 2025
12fdbab
fix(react-email): Potential security issues (#2181)
gabrielmfern Apr 23, 2025
aaa2a2e
fix(ci): Extra security issues (#2183)
gabrielmfern Apr 23, 2025
f92b30f
fix(deps): Vulnerabilities (#2185)
gabrielmfern Apr 23, 2025
5e5ab21
fix(deps): update dependency glob to v11 (#2165)
renovate[bot] Apr 23, 2025
3d50cd7
fix(deps): update dependency commander to v13 (#2164)
renovate[bot] Apr 23, 2025
ea7a96e
chore(deps): update dependency sonner to v2 (#2157)
renovate[bot] Apr 23, 2025
8730f72
fix(deps): update dependency chalk to v5 (#2163)
renovate[bot] Apr 23, 2025
bee2ede
chore(deps): update dependency tailwind-merge to v3 (#2158)
renovate[bot] Apr 23, 2025
aa06eb2
chore(deps): update dependency postcss-selector-parser to v7 (#2156)
renovate[bot] Apr 23, 2025
bd564f9
chore(deps): update dependency node-html-parser to v7 (#2155)
renovate[bot] Apr 23, 2025
46ba741
chore(deps): update dependency jsdom to v26 (#2154)
renovate[bot] Apr 23, 2025
0ec088f
chore(deps): update dependency happy-dom to v17 (#2153)
renovate[bot] Apr 24, 2025
57dfa4b
chore(react-email): Remove unused style-guide (#2189)
gabrielmfern Apr 24, 2025
7011ea2
chore(deps): update dependency @radix-ui/colors to v3 (#2148)
renovate[bot] Apr 24, 2025
42c4900
chore(deps): update dependency @types/node to v22.14.1 (#2149)
renovate[bot] Apr 24, 2025
f2ddf82
chore(deps): update dependency tailwindcss to v3.4.17
renovate[bot] Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/big-dots-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Add .json import support for hot reloading
5 changes: 5 additions & 0 deletions .changeset/bright-berries-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-email": minor
---

Fetch react-email package versions at runtime from `--tag` option
1 change: 0 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["react-email-starter", "create-email"]],
"linked": [],
"access": "public",
"baseBranch": "main",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/dirty-needles-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": minor
---

Theme switcher for email template
5 changes: 5 additions & 0 deletions .changeset/eleven-plums-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Ensure dependencies outside emails directory are completely resolved
5 changes: 5 additions & 0 deletions .changeset/eleven-wombats-make.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Fix dependent of dependents not causing hot reloads
5 changes: 5 additions & 0 deletions .changeset/famous-years-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

fix backwards compatibility with `render` versions
5 changes: 5 additions & 0 deletions .changeset/flat-llamas-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Fix access to files outside `static` directory
5 changes: 5 additions & 0 deletions .changeset/great-parrots-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/tailwind": minor
---

Extract tailwind pseudo classes to stylesheet
5 changes: 5 additions & 0 deletions .changeset/plenty-camels-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/text": patch
---

Fix priority of margin styles not being kept
52 changes: 52 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"mode": "pre",
"tag": "canary",
"initialVersions": {
"demo": "0.0.0",
"docs": "0.0.0",
"web": "0.0.0",
"@benchmarks/preview-server": "0.0.0",
"@benchmarks/tailwind-component": "0.0.0",
"@react-email/body": "0.0.11",
"@react-email/button": "0.0.19",
"@react-email/code-block": "0.0.12",
"@react-email/code-inline": "0.0.5",
"@react-email/column": "0.0.13",
"@react-email/components": "0.0.36",
"@react-email/container": "0.0.15",
"create-email": "1.0.7",
"react-email-starter": "1.0.7",
"@react-email/font": "0.0.9",
"@react-email/head": "0.0.12",
"@react-email/heading": "0.0.15",
"@react-email/hr": "0.0.11",
"@react-email/html": "0.0.11",
"@react-email/img": "0.0.11",
"@react-email/link": "0.0.12",
"@react-email/markdown": "0.0.14",
"@react-email/preview": "0.0.12",
"react-email": "4.0.6",
"@react-email/render": "1.0.6",
"@react-email/row": "0.0.12",
"@react-email/section": "0.0.16",
"@react-email/tailwind": "1.0.4",
"@react-email/text": "0.1.1",
"tsconfig": "0.0.0"
},
"changesets": [
"big-dots-refuse",
"bright-berries-end",
"dirty-needles-chew",
"eleven-plums-type",
"eleven-wombats-make",
"famous-years-knock",
"great-parrots-yell",
"plenty-camels-switch",
"salty-hoops-join",
"six-parts-jam",
"strong-peas-kneel",
"stupid-lights-run",
"wet-guests-share",
"wet-planes-camp"
]
}
8 changes: 8 additions & 0 deletions .changeset/salty-hoops-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"react-email": patch
"@react-email/code-block": patch
"@react-email/markdown": patch
"@react-email/render": patch
---

Use range of versions for dependencies
5 changes: 5 additions & 0 deletions .changeset/six-parts-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Fix non-email files being rendered during hot reloading
5 changes: 5 additions & 0 deletions .changeset/strong-peas-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/render": minor
---

Deprecate the `pretty` option for `render` in favor of standalone `pretty` function
5 changes: 5 additions & 0 deletions .changeset/stupid-lights-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-email": patch
---

Show package.json's version on --version for create-email
5 changes: 5 additions & 0 deletions .changeset/wet-guests-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-email/tailwind": patch
---

Fix multiple variables in the same declaration not being replaced properly
5 changes: 5 additions & 0 deletions .changeset/wet-planes-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-email": patch
---

Add error message for when an email template does not have a default export
36 changes: 36 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
lint:
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- name: pnpm Cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
~/.pnpm-store
node_modules
*/*/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install packages
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- name: Run Lint
run: pnpm lint
env:
SKIP_ENV_VALIDATION: true
63 changes: 63 additions & 0 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: rsnd

on:
push:
branches:
- canary

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: release canary
runs-on: buildjet-4vcpu-ubuntu-2204
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare [email protected] --activate
pnpm config set script-shell "/usr/bin/bash"

- name: pnpm Cache
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
~/.pnpm-store
node_modules
*/*/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-

- name: Install packages
if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile

- name: Enter prerelease mode
# This step errors if it is already in prerelease mode
continue-on-error: true
run: pnpm canary:enter

- name: Create Release Pull Request
uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc
with:
version: pnpm run version
publish: pnpm run release
title: "chore(root): Version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
86 changes: 8 additions & 78 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main
pull_request:
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2204
Expand All @@ -23,7 +26,7 @@ jobs:
pnpm config set script-shell "/usr/bin/bash"

- name: pnpm Cache
uses: buildjet/cache@v4
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
~/.pnpm-store
Expand All @@ -38,7 +41,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: turborepo Cache
uses: buildjet/cache@v4
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
.turbo
Expand All @@ -48,45 +51,6 @@ jobs:

- name: Run Build
run: pnpm build

lint:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: [build]
container:
image: node:22
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
run: |
corepack enable
corepack prepare [email protected] --activate

- name: Restore dependencies
uses: buildjet/cache@v4
with:
path: |
~/.pnpm-store
node_modules
*/*/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: turborepo Cache
uses: buildjet/cache@v4
with:
path: |
.turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Run Build
run: pnpm build

- name: Run Lint
run: pnpm lint

test:
runs-on: buildjet-4vcpu-ubuntu-2204
needs: [build]
Expand All @@ -102,7 +66,7 @@ jobs:
corepack prepare [email protected] --activate

- name: Restore dependencies
uses: buildjet/cache@v4
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
~/.pnpm-store
Expand All @@ -111,7 +75,7 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: turborepo Cache
uses: buildjet/cache@v4
uses: buildjet/cache@3e70d19e31d6a8030aeddf6ed8dbe601f94d09f4
with:
path: |
.turbo
Expand All @@ -134,38 +98,4 @@ jobs:
uses: actions/checkout@v4

- name: Check for pinned dependencies
run: |
node -e '
const fs = require("fs");
const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
const errors = [];

function isPinned(version) {
if (version.startsWith("workspace:")) {
return true;
}
if (version.startsWith("npm:")) {
return true;
}
return /^\d+\.\d+\.\d+$|^[a-z]+:[a-z]+@\d+$/.test(version);
}

for (const [dep, version] of Object.entries(pkg.dependencies || {})) {
if (!isPinned(version)) {
errors.push(`Dependency "${dep}" is not pinned: "${version}"`);
}
}

for (const [dep, version] of Object.entries(pkg.devDependencies || {})) {
if (!isPinned(version)) {
errors.push(`Dev dependency "${dep}" is not pinned: "${version}"`);
}
}

if (errors.length > 0) {
console.error(`\n${errors.join("\n")}\n`);
process.exit(1);
} else {
console.log("All dependencies are pinned.");
}
'
run: npx tsx ./scripts/check-dependency-versions.ts
Loading
Loading