diff --git a/.commitlintrc.js b/.commitlintrc.cjs similarity index 100% rename from .commitlintrc.js rename to .commitlintrc.cjs diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 0981731..f868838 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -10,4 +10,4 @@ jobs: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v4 with: - configFile: .commitlintrc.js + configFile: .commitlintrc.cjs diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 4d9f0fc..adba2b5 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -6,37 +6,21 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x, 20.x] - steps: - name: Checkout sources uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Cache Node.js modules 💾 - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + - name: Use bun + uses: oven-sh/setup-bun@v1 - name: Install dependencies ⏬ - run: npm install + run: bun install - name: Lint code 💄 - run: npm run lint - - - name: Build artifacts 🏗️ - run: npm run build + run: bun run lint - name: Test code ✅ - run: npm run test + run: bun run test + - name: Build artifacts 🏗️ + run: bun run build diff --git a/.github/workflows/on-push-main.yml b/.github/workflows/on-push-main.yml new file mode 100644 index 0000000..1528654 --- /dev/null +++ b/.github/workflows/on-push-main.yml @@ -0,0 +1,29 @@ +name: Test Push to Master + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Use bun + uses: oven-sh/setup-bun@v1 + + - name: Install dependencies ⏬ + run: bun install + + - name: Lint code 💄 + run: bun run lint + + - name: Test code ✅ + run: bun run test + + - name: Build artifacts 🏗️ + run: bun run build diff --git a/.github/workflows/on-push-master.yml b/.github/workflows/on-push-master.yml deleted file mode 100644 index cce93d9..0000000 --- a/.github/workflows/on-push-master.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Test Push to Master - -on: - push: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x] - - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - - name: Cache Node.js modules 💾 - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- - - - name: Install dependencies ⏬ - run: npm install - - - name: Lint code 💄 - run: npm run lint - - - name: Build artifacts 🏗️ - run: npm run build - - - name: Test code ✅ - run: npm run test - - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98c14ed..d6972ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,13 +11,11 @@ jobs: - name: Checkout sources 🔰 uses: actions/checkout@v4 - - name: Setup Node.js 18 👷🏻 - uses: actions/setup-node@v4 - with: - node-version: 18 + - name: Use bun + uses: oven-sh/setup-bun@v1 - name: Install dependencies ⏬ - run: npm ci + run: bun install - name: Release 🚀 uses: cycjimmy/semantic-release-action@v4.1.0 diff --git a/bun.lockb b/bun.lockb index a7cbdda..f48e074 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 60cb15d..ff59ff2 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "npm": ">=6.0.0" }, "devDependencies": { - "@commitlint/cli": "^17.6.5", - "@commitlint/config-conventional": "^17.6.5", + "@commitlint/cli": "^19.5.0", + "@commitlint/config-conventional": "^19.5.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1",