Skip to content
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

feat(infra): migrate to lerna 8 #5821

Merged
merged 196 commits into from May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 173 commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
d0b16b5
fix: add sass.d.ts to chakra-ui, antd, mantine, mui packages
BatuhanW Apr 4, 2024
764a19c
feat(cli): make cli tsup build sync
BatuhanW Apr 4, 2024
3a2e1d8
feat: install lerna 8, setup workspaces, update nx.json
BatuhanW Apr 4, 2024
5663277
feat: use nx for package builds and types scripts
BatuhanW Apr 4, 2024
4ef5c18
chore: gitignore .svelte-kit directory
BatuhanW Apr 4, 2024
b874e92
fix: lerna path in build-example-chunks.js file
BatuhanW Apr 4, 2024
28b6083
fix(ci): pull-request-previews workflow
BatuhanW Apr 4, 2024
70c14b5
fix(ci): pull-request workflow
BatuhanW Apr 4, 2024
cabfc7e
fix(ci): examples-build workflow
BatuhanW Apr 4, 2024
bf45f0b
fix(ci): master-push workflow
BatuhanW Apr 4, 2024
f4ccf85
fix(ci): pull-request-doc workflow
BatuhanW Apr 4, 2024
054d8d5
fix(ci): store-deploy workflow
BatuhanW Apr 4, 2024
32b7321
fix(store): update Dockerfile
BatuhanW Apr 4, 2024
a718bb6
fix(live-previews): update Dockerfile
BatuhanW Apr 4, 2024
4b3b434
fix(examples): update Dockerfiles for finefoods examples
BatuhanW Apr 4, 2024
1da5d02
fix: update nx build scripts
BatuhanW Apr 4, 2024
6ccc4d7
fix(ci): installation scripts
BatuhanW Apr 4, 2024
76835f2
fix(cli): update preferred-pm to workspaces supported version 3.1.3
BatuhanW Apr 5, 2024
08dc4e4
fix: update prepare and types scripts for packages
BatuhanW Apr 5, 2024
b4a98cb
chore: update nuke script
BatuhanW Apr 5, 2024
2457ca0
feat: updates
BatuhanW Apr 5, 2024
0658f0a
feat: replace build scripts
BatuhanW Apr 5, 2024
7e6707c
chore: remove skip nx cache from build scripts
BatuhanW Apr 5, 2024
8a50b02
feat: install example deps with chunks
BatuhanW Apr 16, 2024
8372d09
fix: join workspace args with space
BatuhanW Apr 16, 2024
6a7db47
chore: remove projectId from cypress config and update retries
BatuhanW Apr 16, 2024
34b9d5f
chore: replace start script with dev for nextjs examples
BatuhanW Apr 16, 2024
c290ee3
docs: update contributing guide
BatuhanW Apr 16, 2024
075b359
fix: simplify e2e-example.js by removing redundant promises
BatuhanW Apr 16, 2024
3ba84c1
fix: cypress record key and project id
BatuhanW Apr 16, 2024
bc79b37
fix: retries.openMode in cypress config
BatuhanW Apr 16, 2024
4fca012
chore: add onSuccess back to tsup configs
BatuhanW Apr 16, 2024
8688933
fix: remove duplicate keys
BatuhanW Apr 16, 2024
cebf2a7
fix: add build types to devtools server
BatuhanW Apr 16, 2024
0ad7fd2
chore: add 9th chunk
BatuhanW Apr 17, 2024
99e46cc
fix: chunk split logic
BatuhanW Apr 17, 2024
bf3620e
chore(examples): add missin version field to package jsons
BatuhanW Apr 17, 2024
a2c1848
chore: update package-lock
BatuhanW Apr 17, 2024
e8c3844
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW Apr 17, 2024
3e3489b
fix(cli): remove redundant path prefix from remix runner
BatuhanW Apr 17, 2024
30b2b24
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW Apr 19, 2024
a62aed9
fix: add missing deps to packages
BatuhanW Apr 19, 2024
1c18af1
fix(devtools-server): add missing ast-types dependency
BatuhanW Apr 19, 2024
18837e6
fix: remove redundant types rom devtools-* packages
BatuhanW Apr 19, 2024
bbb43b7
fix(cli): add missing types packages
BatuhanW Apr 19, 2024
8f9490f
fix: add missing scripts to nx.json
BatuhanW Apr 19, 2024
c146b1c
fix: add @types/lodash to missing packages
BatuhanW Apr 19, 2024
4df5300
feat: add pnpm WIP
BatuhanW Apr 19, 2024
5a5afec
feat(ci): add pnpm action WIP
BatuhanW Apr 19, 2024
62c9635
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW Apr 22, 2024
18232f1
fix: add version to pnpm setup step
BatuhanW Apr 22, 2024
5f5713d
fix: update install scripts
BatuhanW Apr 22, 2024
903f068
fix: pnpm run commands
BatuhanW Apr 22, 2024
d3ea586
fix: add missing types packages
BatuhanW Apr 22, 2024
5ae0ecc
fix: update lockfile
BatuhanW Apr 22, 2024
d4d18c3
fix: e2e params
BatuhanW Apr 22, 2024
6cc270a
fix: lint job checkout first
BatuhanW Apr 22, 2024
a0c9118
fix(react-router-v6): add missing dep
BatuhanW Apr 22, 2024
8ea7f5a
feat: add missing project.json into packages folders
BatuhanW Apr 22, 2024
7f32a79
feat: add missing project.json into examples folders
BatuhanW Apr 22, 2024
9ea1c7a
feat: add @chakra-ui/theme-tools as dependency
BatuhanW Apr 22, 2024
b17899a
fix: remove project.json from packages folders
BatuhanW Apr 22, 2024
4e7a68d
chore: remove redundant config
BatuhanW Apr 22, 2024
4963660
fix: remove core dependency from cli
BatuhanW Apr 22, 2024
a23a2d3
fix: pnpm lockfile
BatuhanW Apr 22, 2024
83f6aa1
chore: remove cli imports from core refine.config.js
BatuhanW Apr 24, 2024
90b6ec9
chore: use @ant-design/icons ^5.3.2
BatuhanW Apr 24, 2024
4e01ab0
fix(mui): typing issues
BatuhanW Apr 24, 2024
fed58a8
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW Apr 24, 2024
b154534
chore: update pnpm-lock.yaml
BatuhanW Apr 24, 2024
1ab21a3
chore: remove redundant deps from root
BatuhanW Apr 24, 2024
b991dcd
chore: add extension to locale import
BatuhanW Apr 24, 2024
a530656
chore: remove package-lock.json from master merge
BatuhanW Apr 24, 2024
b9fdd6d
fix(ui-tests): add dayjs as dependency
BatuhanW Apr 24, 2024
8770adb
fix(finefoods-antd): remove unused ts expect error
BatuhanW Apr 24, 2024
c3a3224
fix(finefoods-material-ui): add lodash as dependency
BatuhanW Apr 24, 2024
265b21a
fix(finefoods-antd): remove lodash.deboubnce and add lodash as dep
BatuhanW Apr 24, 2024
d3c714f
fix: remove install script output from examples build
BatuhanW Apr 24, 2024
4969df9
fix: update lockfile
BatuhanW Apr 24, 2024
1d83430
fix: install root deps for lint job
BatuhanW Apr 24, 2024
0316b4e
fix: add @ant-design/icons dep to missing examples
BatuhanW Apr 24, 2024
7db1c47
fix: try to restore pnpm cache for cypress tests
BatuhanW Apr 24, 2024
9951836
chore: trigger CI
BatuhanW Apr 24, 2024
c0e1750
fix(ci): install and lint in different steps
BatuhanW Apr 24, 2024
9d1df80
fix(cli): update specs
BatuhanW Apr 24, 2024
1dcec0e
fix(ci): cypress cache path
BatuhanW Apr 24, 2024
23edafd
chore: update biome.json
BatuhanW Apr 24, 2024
86e9601
chore: ignore package.json from biome and format leftover files
BatuhanW Apr 24, 2024
effceac
fix: update cypress cache path
BatuhanW Apr 24, 2024
2487b6f
chore: convert warn biome rules to off for clarity
BatuhanW Apr 24, 2024
e169990
fix: install fcypress
BatuhanW Apr 24, 2024
61f7300
fix: lint issues
BatuhanW Apr 24, 2024
186ab6a
chore: dummy commit to trigger CI
BatuhanW Apr 24, 2024
48d6cce
fix: add missing dependencies to mantine examples
BatuhanW Apr 25, 2024
76663cf
fix: add @mui/icons-material dependency to missing examples
BatuhanW Apr 25, 2024
7854535
fix(ci): add missing cypress install script to build examples chunk 1
BatuhanW Apr 25, 2024
10abb71
chore: update lockfile
BatuhanW Apr 25, 2024
6d2dd7f
fix: incorrect imports in remix examples
BatuhanW Apr 25, 2024
232c7c4
chore: remove redundant project.json files
BatuhanW Apr 25, 2024
3051cda
chore: revert changes in cypress.config.ts files
BatuhanW Apr 25, 2024
c88f463
chore: revert changes in cypress.config.ts files (for real)
BatuhanW Apr 25, 2024
f42adcb
fix: add missing dependencies to react-hook-form and react-table pack…
BatuhanW Apr 25, 2024
d0a287b
chore: format root and doc package.json
BatuhanW Apr 25, 2024
c0e3afa
fix: add jest dom types package react-hook-form
BatuhanW Apr 25, 2024
7af0814
fix(mantine): add @tanstack/react-query dependency
BatuhanW Apr 25, 2024
04c27e6
chore: ignore package.json files from biome
BatuhanW Apr 25, 2024
6e76fac
fix: add missing dependencies to remix examples
BatuhanW Apr 25, 2024
5b38ed6
feat: dont run devtools for e2e specs and use pnpm to run scripts
BatuhanW Apr 25, 2024
4776cc2
fix: extra args
BatuhanW Apr 25, 2024
bcf7bbd
fix: devtools additional params for e2e specs
BatuhanW Apr 25, 2024
815b1fe
chore: replace npm scripts with pnpm
BatuhanW Apr 25, 2024
2008f93
feat: disable recursive-install
BatuhanW Apr 25, 2024
c2f0ad9
fix: reset lockfile
BatuhanW Apr 26, 2024
f60433c
feat: link workspace packages
BatuhanW Apr 26, 2024
3b6efd2
fix: e2e spec commands
BatuhanW Apr 26, 2024
a4ba323
fix: install root deps first
BatuhanW Apr 26, 2024
1baeaf5
fix: skip scripts before build install
BatuhanW Apr 26, 2024
bd3ce24
fix: move build to top
BatuhanW Apr 26, 2024
9ad4560
fix: build script
BatuhanW Apr 26, 2024
d8aa152
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW Apr 30, 2024
155465f
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 6, 2024
3aacc29
chore(cli): add bin fix dummy executable for pnpm
aliemir May 6, 2024
8c8f6d2
chore(devtools-server): add missing client build script to build
aliemir May 6, 2024
e35fb42
chore: remove cli cjs placeholder
aliemir May 6, 2024
ed628e3
build: add pre install script to add placeholder bin files
aliemir May 6, 2024
8eb35c3
chore: append types script to build commands
aliemir May 6, 2024
8db0024
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 7, 2024
b26efc7
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 7, 2024
c9f4d96
fix: remove redundant variables from CI and ignore-scripts for e2e in…
BatuhanW May 7, 2024
2d758d9
fix: nx default runner issue, make build verbose and update .npmrc co…
BatuhanW May 7, 2024
9bd841d
fix: app-crm graphql version
BatuhanW May 7, 2024
8da3927
fix: revert changes on .npmrc
BatuhanW May 7, 2024
12276e7
fix(blog-refine-daisyui): remove non-existent placeholder attr from s…
BatuhanW May 7, 2024
21a1b08
fix(store): remove unused incorrect type
BatuhanW May 7, 2024
8ec61ae
fix(table-material-ui-use-update-many): incorrect state type
BatuhanW May 7, 2024
b66b75f
fix(tutorial-headless): remove non existent placeholder attr from select
BatuhanW May 7, 2024
057a63c
fix(ci): build before test
BatuhanW May 7, 2024
5c2736a
fix: lint issues
BatuhanW May 7, 2024
86a6de4
fix(table-material-ui-use-delete-many): incorrect state type
BatuhanW May 7, 2024
de92167
fix: ignore blog-react-aria and blog-sveltekit-crud
BatuhanW May 7, 2024
e863a0c
fix: update lockfile
BatuhanW May 7, 2024
b9cb649
fix(ci): devtools disable arg
BatuhanW May 7, 2024
2d05995
feat: use pnpm -w to run build command with nx
BatuhanW May 7, 2024
63cd9db
feat: update configs for testing
BatuhanW May 7, 2024
db7c45f
chore(create-refine-app): add types script
aliemir May 7, 2024
4927901
chore(biome): bump version
aliemir May 7, 2024
78afa15
chore(format): no errors on unmatched files
aliemir May 7, 2024
cfe5a9b
build(types): run types only on watch
aliemir May 7, 2024
ad88385
chore: remove cypress install and try ignore-scripts on chunk 8
BatuhanW May 8, 2024
a6e653a
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 8, 2024
a87955a
chore: update lockfile
BatuhanW May 8, 2024
702e8e3
feat: remove build step and install without scripts for e2e workflows
BatuhanW May 8, 2024
7178a2c
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 8, 2024
89c4dee
fix: add missing install script to chunk 6
BatuhanW May 8, 2024
6c605de
chore: set chunks back to 8
BatuhanW May 8, 2024
229ec8b
fix: add cypress:run command to nx.json
BatuhanW May 8, 2024
208194d
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 8, 2024
10b14da
chore: update lockfile
BatuhanW May 8, 2024
67e354b
fix: add CYPRESS_CACHE_FOLDER env variable
BatuhanW May 8, 2024
6a8693c
fix: path for CYPRESS_CACHE_FOLDER
BatuhanW May 8, 2024
3ed3e0b
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 8, 2024
b2757f7
chore: update lockfile
BatuhanW May 8, 2024
be6cb5e
fix: install cypress
BatuhanW May 8, 2024
d8e5bfe
fix: lint issues
BatuhanW May 8, 2024
ef642c1
fix: add missing build scripts
BatuhanW May 9, 2024
e4fc877
chore: add packageManager to package.json
BatuhanW May 9, 2024
e5735c7
fix: lock styled components versions
BatuhanW May 9, 2024
b05c124
fix(win95): type issue
alicanerdurmaz May 9, 2024
046b8da
fix(win95): ts expect error description
alicanerdurmaz May 9, 2024
bf12253
chore(docs): move from npm to pnpm
aliemir May 9, 2024
5fa1ec6
chore: remove package-lock.json
BatuhanW May 9, 2024
0393e66
feat(ci): use pnpm for docs and master workflows
BatuhanW May 9, 2024
ccfc0e0
feat(docs): update contributing docs
BatuhanW May 9, 2024
f3f3c5e
chore: revert change in invoicer 2 blog post
BatuhanW May 14, 2024
e3fdc77
feat: use pnpm for store Dockerfile
BatuhanW May 14, 2024
ba49843
fix(docs): address review comments
BatuhanW May 14, 2024
f70835e
feat: use pnpm for live-previews Dockerfile
BatuhanW May 14, 2024
640910e
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 14, 2024
83b7a8e
feat: update pnpm version
BatuhanW May 14, 2024
a752a08
fix: use pnpm@9.1.1 for documentation
BatuhanW May 14, 2024
9145718
chore: remove documentation unused Dockerfile
BatuhanW May 14, 2024
4692031
chore: trigger deploy
BatuhanW May 14, 2024
887f031
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 14, 2024
c8bf4e0
chore: trigger netlify deploys
BatuhanW May 14, 2024
8e44dae
Merge branch 'master' into RK-610-infra-migrate-to-npm
BatuhanW May 14, 2024
ba1b151
chore: update lockfile
BatuhanW May 14, 2024
279d069
fix(invoier): remove redundant ts-expect-error directive
BatuhanW May 14, 2024
d42bf11
feat: split into 6 chunks
BatuhanW May 14, 2024
8bfe045
feat: remove core dependency from cli
BatuhanW May 14, 2024
aa58920
fix(core): use cli import in refine.config.js
BatuhanW May 14, 2024
14d6dca
chore: remove unused Dockerfiles
BatuhanW May 14, 2024
1576718
chore: remove redundant job step
BatuhanW May 14, 2024
9dcd647
chore: remove redundant sass.d.ts files
BatuhanW May 15, 2024
aef2eec
chore: revert changes for cli fix
BatuhanW May 15, 2024
ea36fa8
fix(cli): remix bin path
BatuhanW May 15, 2024
b169a80
chore: ant design icons versions
BatuhanW May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/yellow-ladybugs-raise.md
@@ -0,0 +1,5 @@
---
"@refinedev/cli": patch
---

fix: remove hardcoded path prefix from bin resolve for remix run command.
2 changes: 1 addition & 1 deletion .github/workflows/build-example-chunks.js
Expand Up @@ -11,7 +11,7 @@ const BASE_REF = process.env.BASE_REF ? process.env.BASE_REF : "master";
const BUILD_ALL_EXAMPLES = process.env.BUILD_ALL_EXAMPLES === "true";

const getChangedPackages = () => {
const p = require.resolve("lerna/cli.js");
const p = require.resolve("lerna/dist/cli.js");

const output = execSync(`node ${p} ls --since origin/${BASE_REF} --json`, {
stdio: "pipe",
Expand Down

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .github/workflows/deploy-live-previews.yml
Expand Up @@ -11,6 +11,9 @@ jobs:
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- name: live previews docker build
uses: docker/build-push-action@v1
with:
Expand Down
62 changes: 27 additions & 35 deletions .github/workflows/e2e-examples.js
Expand Up @@ -4,15 +4,10 @@ const fs = require("fs");
const waitOn = require("wait-on");
const pidtree = require("pidtree");
const { join: pathJoin } = require("path");
const { promisify } = require("util");
const { exec } = require("child_process");

const KEY = process.env.KEY;
const CI_BUILD_ID = process.env.CI_BUILD_ID;

const EXAMPLES_DIR = "./examples";
const EXAMPLES = process.env.EXAMPLES ? process.env.EXAMPLES : [];
const BASE_REF = process.env.BASE_REF ? process.env.BASE_REF : "master";

const execPromise = (command) => {
let commandProcess;
Expand All @@ -38,26 +33,29 @@ const execPromise = (command) => {
};
};

const getProjectInfo = async (path) => {
const getProjectInfo = (path) => {
// read package.json
const pkg = await promisify(fs.readFile)(
pathJoin(path, "package.json"),
"utf8",
);
const pkg = fs.readFileSync(pathJoin(path, "package.json"), "utf8");

// parse package.json
const packageJson = JSON.parse(pkg);

const projectName = packageJson.name;

const dependencies = Object.keys(packageJson.dependencies || {});
const devDependencies = Object.keys(packageJson.devDependencies || {});

let port = 3000;
let command = "npm run dev";
let command = `pnpm dev --scope ${projectName}`;
let additionalParams = "";

// check for vite
if (dependencies.includes("vite") || devDependencies.includes("vite")) {
port = 5173;

if (dependencies.includes("@refinedev/devtools")) {
additionalParams = "-- --devtools false";
}
}

// check for next and remix
Expand All @@ -68,14 +66,14 @@ const getProjectInfo = async (path) => {
devDependencies.includes("@remix-run/node")
) {
port = 3000;
command = "npm run build && npm run start:prod";
command = `pnpm build --scope ${projectName} && pnpm run --filter ${projectName} start:prod`;
}

if (
dependencies.includes("react-scripts") ||
devDependencies.includes("react-scripts")
) {
additionalParams = "-- --host 127.0.0.1";
additionalParams = "--host 127.0.0.1";
}

return {
Expand All @@ -96,22 +94,18 @@ const prettyLog = (bg, ...args) => {
console.log(code, ...args, "\x1b[0m");
};

const getProjectsWithE2E = async () => {
return (
await Promise.all(
EXAMPLES.split(",").map(async (path) => {
const dir = pathJoin(EXAMPLES_DIR, path);
const isDirectory = (await promisify(fs.stat)(dir)).isDirectory();
const isConfigExists = await promisify(fs.exists)(
pathJoin(dir, "cypress.config.ts"),
);
const getProjectsWithE2E = () => {
return EXAMPLES.split(",")
.map((path) => {
const dir = pathJoin(EXAMPLES_DIR, path);
const isDirectory = fs.statSync(dir).isDirectory();
const isConfigExists = fs.existsSync(pathJoin(dir, "cypress"));

if (isDirectory && isConfigExists) {
return path;
}
}),
)
).filter(Boolean);
if (isDirectory && isConfigExists) {
return path;
}
})
.filter(Boolean);
};

const waitOnFor = async (resource) => {
Expand Down Expand Up @@ -176,7 +170,7 @@ const waitForClose = (resource) => {
};

const runTests = async () => {
const examplesToRun = await getProjectsWithE2E();
const examplesToRun = getProjectsWithE2E();

if (examplesToRun.length === 0) {
return { success: true, empty: true };
Expand All @@ -191,7 +185,7 @@ const runTests = async () => {
for await (const path of examplesToRun) {
console.log(`::group::Example ${path}`);

const { port, command, additionalParams } = await getProjectInfo(
const { port, command, additionalParams } = getProjectInfo(
`${EXAMPLES_DIR}/${path}`,
);
console.log("port", port);
Expand All @@ -208,9 +202,7 @@ const runTests = async () => {

// starting the dev server
try {
start = exec(
`cd ${pathJoin(EXAMPLES_DIR, path)} && ${command} ${additionalParams}`,
);
start = exec(`${command} ${additionalParams}`);

start.stdout.on("data", console.log);
start.stderr.on("data", console.error);
Expand Down Expand Up @@ -241,8 +233,8 @@ const runTests = async () => {

try {
if (!failed) {
const params = `-- --record --key ${KEY} --group ${path}`;
const runner = `npm run lerna run cypress:run -- --scope ${path} ${params}`;
const params = `-- --record --group ${path}`;
const runner = `pnpm lerna run cypress:run --scope ${path} ${params}`;

prettyLog("blue", `Running tests for ${path}`);

Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/master-push.yml
Expand Up @@ -25,11 +25,14 @@ jobs:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PANKOD_BOT_TOKEN }}
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
Expand All @@ -38,24 +41,21 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Dependencies & Build
run: |
npm ci
npm run bootstrap:all
npm run build:all
run: pnpm install
- name: Lint
run: npm run lint:ci
run: pnpm lint:ci
- name: Test
run: npm run test:all
run: pnpm test:all
- name: Publint
run: npm run publint:all
run: pnpm publint:all
- name: Are The Types Wrong
run: npm run attw:all
run: pnpm attw:all
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npm run changeset version
publish: npm run changeset publish
version: pnpm changeset version
publish: pnpm changeset publish
commit: "ci(changesets): version packages"
title: "ci(changesets): version packages"
env:
Expand Down Expand Up @@ -115,6 +115,9 @@ jobs:
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: "18.x"
Expand All @@ -135,11 +138,9 @@ jobs:
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: |
npm ci
npm run bootstrap:all
npm run build:all
pnpm install
cd documentation
npm ci
pnpm --ignore-workspace install
- name: Release to GitHub Pages
env:
USE_SSH: true
Expand All @@ -150,4 +151,4 @@ jobs:
cd documentation
git config --global user.email "bot@pankod.com"
git config --global user.name "pankod-bot"
LIVE_PREVIEW_URL=https://next.live-previews.refine.dev/preview npm run deploy
LIVE_PREVIEW_URL=https://next.live-previews.refine.dev/preview pnpm deploy
19 changes: 9 additions & 10 deletions .github/workflows/pull-request-doc.yml
Expand Up @@ -22,15 +22,15 @@ jobs:
name: Deploy Documentation Preview

steps:
- name: Workflow run cleanup action
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
cache: "pnpm"
- name: Add key to allow access to repository
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand All @@ -46,12 +46,11 @@ jobs:
EOT
- name: Install Package Dependencies
run: |
npm ci
npm run bootstrap:all
pnpm install
- name: Install Doc Dependencies
run: |
cd documentation
npm ci
pnpm --ignore-workspace install
- name: Wait for Netlify Deploy (Live Previews)
uses: probablyup/wait-for-netlify-action@3.2.0
id: waitForDeployment
Expand All @@ -67,7 +66,7 @@ jobs:
- name: Build Documentation
run: |
cd documentation
LIVE_PREVIEW_URL=${{ steps.waitForDeployment.outputs.url }}/preview npm run build
LIVE_PREVIEW_URL=${{ steps.waitForDeployment.outputs.url }}/preview pnpm build
- name: Deploy to Netlify
id: netlify-deploy
uses: nwtgck/actions-netlify@v1.2
Expand Down
37 changes: 19 additions & 18 deletions .github/workflows/pull-request-previews.yml
Expand Up @@ -25,20 +25,19 @@ jobs:
name: Fine Foods Antd

steps:
- name: Workflow run cleanup action
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
cache: "pnpm"
- name: Install Dependencies
run: |
npm ci
npm run bootstrap -- --scope finefoods-antd
npm run build -- --scope finefoods-antd
pnpm install
pnpm build --scope finefoods-antd
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:
Expand All @@ -65,20 +64,22 @@ jobs:
name: Fine Foods Material UI

steps:
- name: Workflow run cleanup action
uses: rokroskar/workflow-run-cleanup-action@v0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
cache: "pnpm"
- uses: pnpm/action-setup@v3
with:
version: 9
- name: Install Dependencies
run: |
npm ci
npm run bootstrap -- --scope finefoods-material-ui
npm run build -- --scope finefoods-material-ui
pnpm install
pnpm build --scope finefoods-material-ui
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:
Expand Down