Skip to content

Commit

Permalink
Switch to corepack and pin actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Apr 4, 2024
1 parent f092221 commit 5df64ec
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,39 @@ jobs:
ci:
runs-on: ubuntu-latest
steps :
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-node@master
- uses: actions/setup-node@v4
with:
node-version: 10.x
- name: Get yarn cache directory path
id : yarn-cache-dir-path
run : echo "##[set-output name=dir;].yarn"
- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: sergioramos/yarn-actions/install@master
with:
frozen-lockfile: true
- name: Install Dependencies
run : |
corepack yarn
- name: Lint
run : |
yarn lint
corepack yarn lint
- name: Build
run : |
yarn build
corepack yarn build
- name: Test
run : |
yarn test
corepack yarn test
- name: Website Build
if : github.ref == 'refs/heads/main'
run : |
yarn website:install
yarn injectweb
yarn website:build
corepack yarn website:install
corepack yarn injectweb
corepack yarn website:build
- name: Website Deploy 🚀
if : github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
Expand Down

0 comments on commit 5df64ec

Please sign in to comment.