Skip to content

Commit

Permalink
ci: update actions and remove dep for storybook deploy (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
imccausl committed Feb 11, 2024
1 parent c7f0277 commit 9e148c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
shell: bash

- name: Restore Yarn Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
.yarn/cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -35,12 +35,12 @@ jobs:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare Environment
uses: ./.github/actions/prepare-env

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .turbo
key: ${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Prepare Environment
uses: ./.github/actions/prepare-env
- name: Build packages
Expand All @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
needs: [pre-release-check]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/prepare-env
Expand All @@ -51,7 +51,6 @@ jobs:
name: github-pages
url: ${{ steps.deploy-storybook.outputs.page_url }}
runs-on: ubuntu-latest
needs: [pre-release-check]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -60,7 +59,7 @@ jobs:
- uses: ./.github/actions/prepare-env

- name: Cache Storybook Assets
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ./.out
key: storybook-assets-${{ hashFiles('**/package.json', '**/yarn.lock') }}-${{ hashFiles('**/.storybook/**/*')}}
Expand Down

0 comments on commit 9e148c7

Please sign in to comment.