Skip to content

Commit

Permalink
add autorrelease and types to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jan 9, 2025
1 parent ea80e0d commit c0c0324
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 2 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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"start": "vite",
"build": "tsup-node ./cli ./lib --format esm --sourcemap",
"build": "tsup-node ./cli ./lib --dts --format esm --sourcemap",
"format": "biome format --write .",
"format:check": "biome format .",
"vercel-build": "vite build"
Expand Down
63 changes: 63 additions & 0 deletions scripts/example-usage-1.debug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion scripts/example-usage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Debug from "debug"

const debugGraphics = Debug("graphics-debug:example-usage:graphics")
const debugGraphics = Debug("my-package:graphics")

debugGraphics(
JSON.stringify({
Expand Down
64 changes: 64 additions & 0 deletions scripts/more-example-usage-2.debug.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c0c0324

Please sign in to comment.