Skip to content

Commit

Permalink
[Feat] update publish logic (#12)
Browse files Browse the repository at this point in the history
* [Update] index.html from minimal template

* [Feat] update publish logic
  • Loading branch information
mistricky authored Aug 8, 2024
1 parent f891f49 commit c9b2c70
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ jobs:
git pull --rebase
git push
- name: Build packages
run: pnpm run build

- name: Publish workspace packages
working-directory: scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: deno task publish
run: pnpm run publish:workspace

- name: Bump version and push tag
id: tag_version
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "pnpm --filter './packages/**' build",
"publish:packages": "pnpm --filter './packages/**' publish"
},
"keywords": [],
"author": "",
Expand Down
6 changes: 5 additions & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "dist/index.js",
"scripts": {
"dev": "tsc -w"
"dev": "tsc -w",
"build": "tsc"
},
"keywords": [],
"author": "",
Expand All @@ -13,6 +14,9 @@
"@thewu/core": "workspace:*",
"reflect-metadata": "^0.2.2"
},
"files": [
"dist"
],
"devDependencies": {
"@types/jest": "^29.5.12",
"ts-jest": "^29.1.5"
Expand Down
6 changes: 5 additions & 1 deletion packages/jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "tsc -w",
"build": "tsc"
},
"exports": {
"./jsx-runtime": "./dist/main.js",
Expand All @@ -13,6 +14,9 @@
"dependencies": {
"@thewu/core": "workspace:*"
},
"files": [
"dist"
],
"keywords": [],
"author": "",
"license": "ISC"
Expand Down
6 changes: 5 additions & 1 deletion packages/wu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
"description": "",
"main": "./dist/index.js",
"scripts": {
"dev": "tsc -w"
"dev": "tsc -w",
"build": "tsc"
},
"keywords": [],
"author": "",
"files": [
"dist"
],
"license": "ISC",
"dependencies": {
"reflect-metadata": "^0.2.2"
Expand Down
9 changes: 4 additions & 5 deletions templates/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
},
"license": "MIT",
"devDependencies": {
"typescript": "^5.3.3",
"@thewu/core": "latest",
"@thewu/browser": "latest",
"@thewu/jsx": "latest"
"typescript": "^5.3.3"
},
"dependencies": {
"solid-js": "^1.8.11"
"@thewu/core": "^0.0.4",
"@thewu/browser": "^0.0.4",
"@thewu/jsx": "^0.0.4"
}
}

0 comments on commit c9b2c70

Please sign in to comment.