From 8dc82e97ac112d1c9c8898a14f400ed1759c9453 Mon Sep 17 00:00:00 2001 From: seveibar Date: Sun, 29 Sep 2024 16:24:30 -0700 Subject: [PATCH] add auto-release --- .github/workflows/bun-typecheck.yml | 26 ++++++++++++++++++++++++++ .github/workflows/pver-release.yml | 20 ++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/bun-typecheck.yml create mode 100644 .github/workflows/pver-release.yml diff --git a/.github/workflows/bun-typecheck.yml b/.github/workflows/bun-typecheck.yml new file mode 100644 index 0000000..22b3f96 --- /dev/null +++ b/.github/workflows/bun-typecheck.yml @@ -0,0 +1,26 @@ +# Created using @tscircuit/plop (npm install -g @tscircuit/plop) +name: Type Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + type-check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Install dependencies + run: bun i + + - name: Run type check + run: bunx tsc --noEmit diff --git a/.github/workflows/pver-release.yml b/.github/workflows/pver-release.yml new file mode 100644 index 0000000..bb6e43b --- /dev/null +++ b/.github/workflows/pver-release.yml @@ -0,0 +1,20 @@ +# 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 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm install -g pver + - run: npm ci + - run: pver release + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}