Skip to content

Commit

Permalink
publish first version set up publishing and testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Aug 24, 2024
1 parent 2fd3aba commit 773e452
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 6 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/bun-pver-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Publish to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install -g pver
- run: bun install --frozen-lockfile
- run: bun run build
- run: pver release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/bun-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Bun Test

on:
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Install dependencies
run: bun install

- name: Run tests
run: bun test
Binary file modified bun.lockb
Binary file not shown.
4 changes: 1 addition & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export { Board } from "./lib/components/normal-components/Board"
export { Project } from "./lib/Project"
export { Resistor } from "./lib/components/normal-components/Resistor"
export * from "./lib/index"
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
{
"name": "core",
"name": "@tscircuit/core",
"module": "index.ts",
"type": "module",
"types": "index.ts",
"version": "0.0.1",
"main": "dist/index.cjs",
"files": [
"index.ts",
"lib",
"dist"
],
"scripts": {
"build": "tsup index.ts"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@tscircuit/log-soup": "^1.0.2",
"@types/bun": "latest",
"@types/react": "^18.3.3",
"@types/react-reconciler": "^0.28.8",
"circuit-to-svg": "^0.0.3",
"looks-same": "^9.0.1"
"looks-same": "^9.0.1",
"tsup": "^8.2.4"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand All @@ -25,4 +37,4 @@
"schematic-symbols": "0.0.10",
"transformation-matrix": "^2.16.1"
}
}
}

0 comments on commit 773e452

Please sign in to comment.