Skip to content

Commit

Permalink
build packages on pull reuqest
Browse files Browse the repository at this point in the history
  • Loading branch information
vrepsys committed Dec 18, 2024
1 parent 50589f5 commit 763b6ed
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build all packages

on:
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18 # Adjust this if your project uses a different Node.js version
cache: 'pnpm'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build packages in packages/*
run: turbo build --filter="packages/*"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"bump:rc": "pnpm -r run bump:rc"
},
"devDependencies": {
"prettier": "^3.2.5",
Expand Down
8 changes: 5 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prose-ui/core",
"version": "1.0.0-beta.10",
"version": "1.0.0",
"license": "MIT",
"type": "module",
"exports": {
Expand All @@ -17,8 +17,10 @@
"build:watch": "nodemon -e json --watch package.json --exec 'npm run build && npm pack'",
"watch": "rm -rf dist && tsc --watch",
"test": "vitest",
"patch:beta": "pnpm version prerelease --preid=beta",
"publish:beta": "pnpm publish --access public --tag latest --no-git-checks"
"bump:rc": "pnpm version prerelease --preid=rc --no-git-tag-version",
"publish:rc": "pnpm publish --access public --tag next --no-git-checks",
"bump:latest": "pnpm version patch --no-git-tag-version",
"publish:latest": "pnpm publish --access public --tag latest --no-git-checks"
},
"devDependencies": {
"@prose-ui/eslint-config": "workspace:*",
Expand Down
5 changes: 3 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "rm -rf dist prose-ui.css && tsc && cp ../styles/dist/prose-ui.css ./",
"watch": "nodemon -e ts,tsx,json --watch src --watch package.json --exec 'pnpm build'",
"patch:beta": "pnpm version prerelease --preid=beta",
"publish:beta": "pnpm publish --access public --tag latest --no-git-checks"
"bump:rc": "pnpm version prerelease --preid=rc --no-git-tag-version",
"publish:rc": "pnpm publish --access public --tag next --no-git-checks"
},
"type": "module",
"files": [
Expand Down Expand Up @@ -57,4 +58,4 @@
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0"
}
}
}

0 comments on commit 763b6ed

Please sign in to comment.