Skip to content

Commit

Permalink
set up fake api releases
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jan 15, 2025
1 parent d897694 commit 4c39bcf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/bun-pver-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Publish to npm
on:
push:
branches:
- main
paths:
- 'fake-snippets-api/**'
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:fake-api
- run: pver release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Binary file modified bun.lockb
Binary file not shown.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "snippets",
"private": true,
"version": "0.0.0",
"name": "@tscircuit/fake-snippets",
"version": "0.0.1",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/tscircuit/snippets"
},
"main": "dist/bundle.js",
"scripts": {
"start": "bun run dev",
"snapshot": "bun scripts/snapshot.ts",
Expand Down Expand Up @@ -152,6 +152,7 @@
"sharp": "^0.33.5",
"tailwindcss": "^3.4.13",
"terser": "^5.27.0",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite-plugin-image-optimizer": "^1.1.8",
Expand Down

0 comments on commit 4c39bcf

Please sign in to comment.