Skip to content

Commit 10887d6

Browse files
chore: Fix preview workflow (#227)
1 parent df69a87 commit 10887d6

3 files changed

Lines changed: 15 additions & 32 deletions

File tree

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ jobs:
4040
fetch-depth: 0
4141
- name: Setup Tools
4242
uses: ./.github/setup
43+
- name: Build Packages
44+
run: pnpm run build:all
4345
- name: Publish Previews
4446
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --no-template

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@
1010
"scripts": {
1111
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...')} else {process.exit(1)}\" || npx -y only-allow pnpm",
1212
"test": "pnpm run test:ci",
13-
"test:pr": "nx affected --targets=test:eslint,test:types,test:build,test:sherif",
14-
"test:ci": "nx run-many --targets=test:eslint,test:types,test:build,test:sherif",
13+
"test:pr": "nx affected --targets=test:eslint,test:types,test:build,test:sherif,build",
14+
"test:ci": "nx run-many --targets=test:eslint,test:types,test:build,test:sherif,build",
1515
"test:build": "nx affected --target=test:build",
1616
"test:types": "nx affected --target=test:types",
1717
"test:eslint": "nx affected --target=test:eslint",
18-
"test:sherif": "sherif",
1918
"test:format": "pnpm run prettier --check",
19+
"test:sherif": "sherif",
20+
"build": "nx affected --target=build",
21+
"build:all": "nx run-many --target=build",
22+
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
23+
"dev": "pnpm run watch",
2024
"prettier": "prettier --ignore-unknown .",
2125
"prettier:write": "pnpm run prettier --write",
2226
"changeset": "changeset",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)