From 07521bc97d914149ec372e75cf4e2c64ce0ff6a8 Mon Sep 17 00:00:00 2001 From: brklntmhwk_dev <86272619+brklntmhwk@users.noreply.github.com> Date: Thu, 30 Jan 2025 04:54:15 +0000 Subject: [PATCH] =?UTF-8?q?ci(dev):=20=F0=9F=8E=A1=20modify=20workflow=20f?= =?UTF-8?q?iles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use the latest bun version in all workflows and remove .tool-verisons --- .github/workflows/ci.yml | 26 ++----------------- .github/workflows/dev.yml | 4 +-- .github/workflows/prod.yml | 2 ++ .tool-versions | 1 - src/components/ui/Icon/types.ts | 44 ++++++++++++++++----------------- 5 files changed, 28 insertions(+), 49 deletions(-) delete mode 100644 .tool-versions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73a1b078..68aec0e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Bun uses: oven-sh/setup-bun@v2 + with: + bun-version: latest - name: Set up bun store and build artifact cache uses: actions/cache@v4 with: @@ -49,27 +51,3 @@ jobs: run: bun i --no-save - name: Textlint run: bun --bun run textlint - build: - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up Bun - uses: oven-sh/setup-bun@v2 - - name: Set up bun store and build artifact cache - uses: actions/cache@v4 - with: - path: | - ~/.bun/install/cache - node_modules - key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} - restore-keys: | - ${{ runner.os }}-bun- - - name: Install dependencies - run: bun i --no-save - - name: Build project - run: bun --bun run build - env: - PUBLIC_TURNSTILE_SITE_KEY: ${{ secrets.PUBLIC_TURNSTILE_SITE_KEY }} - UNSPLASH_API_ACCESS_KEY: ${{ secrets.UNSPLASH_API_ACCESS_KEY }} diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 7258ec24..ab640971 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -2,8 +2,6 @@ name: Alpha Deployment on: pull_request: - branches-ignore: - - main push: branches-ignore: - main @@ -17,6 +15,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Bun uses: oven-sh/setup-bun@v2 + with: + bun-version: latest - name: Set up bun store and build artifact cache uses: actions/cache@v4 with: diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 3946fd67..6fafc316 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -19,6 +19,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Bun uses: oven-sh/setup-bun@v2 + with: + bun-version: latest - name: Set up bun store and build artifact cache uses: actions/cache@v4 with: diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 13d3f725..00000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -bun 1.1.32 diff --git a/src/components/ui/Icon/types.ts b/src/components/ui/Icon/types.ts index 00f9e29b..70eda7c0 100644 --- a/src/components/ui/Icon/types.ts +++ b/src/components/ui/Icon/types.ts @@ -1,31 +1,31 @@ export type IconName = - | 'bmc' - | 'check' - | 'failure' - | 'github' - | 'hand-heart-filled' - | 'hand-heart' - | 'info' - | 'language' - | 'left-arrow' - | 'left-double-arrow' - | 'link' - | 'loading' + | 'unsplash' | 'magnifier' + | 'publish' | 'mail' | 'moon' - | 'new' - | 'pencil' - | 'point' - | 'publish' - | 'question' | 'quote' + | 'point' + | 'bmc' | 'right-arrow' - | 'right-double-arrow' - | 'rss' + | 'pencil' | 'star' - | 'sun' + | 'warning' | 'toc' - | 'unsplash' + | 'right-double-arrow' + | 'failure' + | 'hand-heart-filled' + | 'github' + | 'left-double-arrow' + | 'info' + | 'new' + | 'hand-heart' + | 'loading' | 'update' - | 'warning'; + | 'left-arrow' + | 'language' + | 'rss' + | 'sun' + | 'link' + | 'check' + | 'question';