Skip to content

Commit

Permalink
Update CI-CD-gear-ui.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Magorsky authored May 21, 2024
1 parent 6fb7375 commit a95f034
Showing 1 changed file with 3 additions and 55 deletions.
58 changes: 3 additions & 55 deletions .github/workflows/CI-CD-gear-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,71 +11,19 @@ on:
paths:
- utils/gear-ui/**
- utils/vara-ui/**
workflow_dispatch:

jobs:
gear-ui-test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install NodeJS 18.x
uses: actions/[email protected]
with:
node-version: 18.x

- name: 'gear-ui: Install dependencies'
working-directory: utils/gear-ui
run: yarn install

- name: 'gear-ui: Build pkg'
working-directory: utils/gear-ui
run: yarn build

- name: 'gear-ui: Run tests'
working-directory: utils/gear-ui
run: yarn test

vara-ui-build:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install NodeJS 18.x
uses: actions/[email protected]
with:
node-version: 18.x

- name: 'vara-ui: Install dependencies'
working-directory: utils/vara-ui
run: npm install

- name: 'vara-ui: Build pkg'
working-directory: utils/vara-ui
run: npm run build

publish-to-npm:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2

- name: Use node 18.x
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: 18.18.1
node-version: 18.x

- name: '@gear-js/ui: Check pkg version'
uses: EndBug/version-check@v1
Expand Down

0 comments on commit a95f034

Please sign in to comment.