Skip to content

Commit

Permalink
ci(ci): use setup composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Feb 12, 2024
1 parent 7fcd849 commit 185cdec
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
npm_token: ${{secrets.npm_token}}
Expand All @@ -18,55 +18,39 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
node-version-file: ".nvmrc"
- name: Install
run: yarn
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
npm_token: ${{secrets.npm_token}}
- name: Test
run: yarn lerna run lint

stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
node-version-file: ".nvmrc"
- name: Install
run: yarn
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
npm_token: ${{secrets.npm_token}}
- name: Test
run: yarn lerna run stylelint

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
node-version-file: ".nvmrc"
- name: Install
run: yarn
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
npm_token: ${{secrets.npm_token}}
- name: Test
run: yarn lerna run build

build-storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
node-version-file: ".nvmrc"
- name: Install
run: yarn
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
npm_token: ${{secrets.npm_token}}
- name: Test
run: yarn lerna run build-storybook

0 comments on commit 185cdec

Please sign in to comment.