Skip to content

Commit

Permalink
refactor: use vite5
Browse files Browse the repository at this point in the history
  • Loading branch information
boindil authored and boindil committed Mar 26, 2024
2 parents a1854f2 + 2df4674 commit 9d804b4
Show file tree
Hide file tree
Showing 45 changed files with 5,033 additions and 9,063 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*.{js,jsx,ts,tsx,vue,json}]
indent_size = 2
158 changes: 81 additions & 77 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This workflow runs through the test suite

name: ci

on:
Expand All @@ -12,107 +14,109 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Clone Repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x.x

- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
- name: Get PNPM Store Directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Set node version to 16
uses: actions/setup-node@v2
- name: Setup PNPM Cache
uses: actions/cache@v3
with:
node-version: 16
cache: 'pnpm'
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Install Dependencies
run: pnpm install --ignore-scripts --frozen-lockfile

- name: Build library
- name: Build Library
run: pnpm run build
test-lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
test-lint:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Clone Repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2

- name: Set node version to 16
uses: actions/setup-node@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts
node-version: 20.x.x

- name: Test lint
run: pnpm run test:lint
test-unit:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install

steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Get PNPM Store Directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Install pnpm
uses: pnpm/action-setup@v2.2.2

- name: Set node version to 16
uses: actions/setup-node@v2
- name: Setup PNPM Cache
uses: actions/cache@v3
with:
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --ignore-scripts
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Test unit
run: pnpm run test:unit
- name: Install Dependencies
run: pnpm install --ignore-scripts --frozen-lockfile

test-coverage:
runs-on: ${{ matrix.os }}
- name: Test Lint
run: pnpm run test:lint:ci

strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
test-unit:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Clone Repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x.x

- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install

- name: Install pnpm
uses: pnpm/action-setup@v2.2.2
- name: Get PNPM Store Directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Set node version to 16
uses: actions/setup-node@v2
- name: Setup PNPM Cache
uses: actions/cache@v3
with:
node-version: 16
cache: 'pnpm'
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Install Dependencies
run: pnpm install --ignore-scripts --frozen-lockfile

- name: Test coverage
run: pnpm run test:coverage
- name: Test Unit
run: pnpm run test:unit:ci
58 changes: 58 additions & 0 deletions .github/workflows/npm-publish-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# This workflow will publish the main package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: npm-publish-main

on:
release:
types: [created]
workflow_dispatch: {}

jobs:
publish-npm-main:
permissions:
id-token: write

runs-on: ubuntu-latest

steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
ref: 'main'

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x.x
registry-url: 'https://registry.npmjs.org'

- name: Install PNPM
uses: pnpm/action-setup@v2
id: pnpm-install

- name: Get PNPM Store Directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup PNPM Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Dependencies
run: pnpm install --ignore-scripts --frozen-lockfile

- name: Build Library
run: pnpm run build --filter "@boindil/bootstrap-vue-next-icons"

- name: Publish Main
run: pnpm publish --tag latest --filter "@boindil/bootstrap-vue-next-icons" --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
44 changes: 0 additions & 44 deletions .github/workflows/npm-publish.yaml

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/release-dev.yaml

This file was deleted.

Loading

0 comments on commit 9d804b4

Please sign in to comment.