Skip to content
This repository was archived by the owner on Feb 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
name: ⬣ ESLint
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand All @@ -32,7 +29,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
# cache: 'bun'
cache-dependency-path: ./package.json

- name: 📥 Install deps
Expand All @@ -45,9 +41,6 @@ jobs:
name: ʦ TypeScript
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand All @@ -58,7 +51,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
# cache: 'bun'
cache-dependency-path: ./package.json

- name: 📥 Install deps
Expand All @@ -71,9 +63,6 @@ jobs:
name: 🎯 Tests
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand All @@ -84,7 +73,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
# cache: 'bun'
cache-dependency-path: ./package.json

- name: 📥 Install deps
Expand All @@ -104,9 +92,6 @@ jobs:
runs-on: ubuntu-latest
needs: [lint, typecheck, test]
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/coverage-badges-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1

- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
Expand All @@ -27,7 +24,6 @@ jobs:
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'
# cache: 'bun'
cache-dependency-path: ./package.json

- name: 📥 Install deps
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/publish.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: ⚡ Release

on:
workflow_run:
workflows: ['⚡ Integration checks']
branches: [main]
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
publish:
name: 🛩️ Release & Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🛰️ Release please
uses: googleapis/release-please-action@v4
id: release
with:
release-type: node

- name: ⬇️ Checkout repo
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: 📦 Setup bun
uses: oven-sh/setup-bun@v2
if: ${{ steps.release.outputs.release_created }}

- name: ⎔ Setup node
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
node-version-file: '.node-version'
registry-url: 'https://registry.npmjs.org'

- name: 📥 Install deps
if: ${{ steps.release.outputs.release_created }}
run: pnpm install --frozen-lockfile

- name: ⚙️ Building package
if: ${{ steps.release.outputs.release_created }}
run: pnpm build

- name: 🚀 Publish package
id: publish
if: ${{ steps.release.outputs.release_created }}
run: npm publish ./dist --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading