Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vara UI #1346

Merged
merged 30 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ff04fc0
Init vite template
nikitayutanov Aug 8, 2023
8fb886f
Init storybook
nikitayutanov Aug 8, 2023
5f56b51
Add svg import
nikitayutanov Aug 8, 2023
c6be1d8
Add button
nikitayutanov Aug 8, 2023
4ea97e7
Add build
nikitayutanov Aug 9, 2023
a62e162
Add input
nikitayutanov Aug 9, 2023
caee6f1
Add textarea
nikitayutanov Aug 11, 2023
6806c5a
Add select
nikitayutanov Aug 11, 2023
e1c859c
Add checkbox
nikitayutanov Aug 11, 2023
f75f71b
Add radio
nikitayutanov Aug 11, 2023
20674e9
Add transparent button
nikitayutanov Aug 13, 2023
98f65e0
Add alert
nikitayutanov Aug 13, 2023
8a273bd
Add modal
nikitayutanov Aug 13, 2023
be6c765
Fix modal body overflow
nikitayutanov Aug 13, 2023
2220645
Add font
nikitayutanov Aug 13, 2023
bedd9d6
Add basic resets
nikitayutanov Aug 13, 2023
7ed2667
Add button children
nikitayutanov Aug 13, 2023
b094216
Add input size
nikitayutanov Aug 14, 2023
aa8f5c6
Add disabled styles
nikitayutanov Aug 14, 2023
2c8ffec
Add ref forwarding
nikitayutanov Aug 14, 2023
8ce8835
Pins deps
nikitayutanov Aug 14, 2023
f0d8d95
Fix build stories d ts
nikitayutanov Aug 14, 2023
38e0c4e
Fix fonts build
nikitayutanov Aug 14, 2023
76ab713
Add readme and npm build dir
nikitayutanov Aug 14, 2023
8280aa1
add: ci for vara-ui
osipov-mit Aug 16, 2023
ecb0fe1
vara-ui as part of workspace
osipov-mit Aug 16, 2023
9831b5a
Merge branch main
osipov-mit Aug 16, 2023
8d390f7
rm ui pkgs from workspace
osipov-mit Aug 16, 2023
1d4fe7e
drop yarn
nikitayutanov Aug 16, 2023
6f592ae
update ci
osipov-mit Aug 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 83 additions & 18 deletions .github/workflows/CI-CD-gear-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
branches: [main]
paths:
- utils/gear-ui/**
- utils/vara-ui/**
push:
branches: [main]
paths:
- utils/gear-ui/**
- utils/vara-ui/**

jobs:
test:
gear-ui-test:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
Expand All @@ -22,49 +24,112 @@ jobs:

- uses: actions/checkout@v2

- name: Install NodeJS 16.x
- name: Install NodeJS 18.x
uses: actions/setup-node@v2.1.5
with:
node-version: 16.x
node-version: 18.x

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

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

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

vara-ui-build:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow runs
uses: styfle/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2

- name: Install NodeJS 18.x
uses: actions/setup-node@v2.1.5
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:
- uses: actions/checkout@v2
- name: "Checkout"
uses: actions/checkout@v2

- name: "Check changed files"
shell: pwsh
id: check_file_changed
run: |
# Diff HEAD with the previous commit
$diff = git diff --name-only HEAD^ HEAD
# Check if a file under gear-ui has changed (added, modified, deleted)
$SourceDiffGearUI = $diff | Where-Object { $_ -match '^utils/gear-ui/' }
$HasDiffGearUI = $SourceDiffGearUI.Length -gt 0
$SourceDiffVaraUI = $diff | Where-Object { $_ -match '^utils/vara-ui/' }
$HasDiffVaraUI = $SourceDiffVaraUI.Length -gt 0
# Set the output
Write-Host "::set-output name=gearui_changed::$HasDiffGearUI"
Write-Host "::set-output name=varaui_changed::$HasDiffVaraUI"

- name: Use node 16.x

- name: Use node 18.x
uses: actions/setup-node@v2.1.5
with:
node-version: 16.x
node-version: 18.x

- name: Check package version
- name: "@gear-js/ui: Check pkg version"
uses: EndBug/version-check@v1
id: check
id: check_gear
with:
file-name: utils/gear-ui/package.json
file-url: https://unpkg.com/@gear-js/ui@latest/package.json
static-checking: localIsNew

- name: Publish
if: steps.check.outputs.changed == 'true'
- name: "@gear-js/vara-ui: Check pkg version"
uses: EndBug/version-check@v1
id: check_vara
with:
file-name: utils/vara-ui/package.json
file-url: https://unpkg.com/@gear-js/vara-ui@latest/package.json
static-checking: localIsNew

- name: "@gear-js/ui: Publish"
if: steps.check_gear.outputs.changed == 'true'
working-directory: utils/gear-ui
run: |
export token=$(printenv $(printenv GITHUB_ACTOR))
yarn install
yarn build
npm install
npm run build
npm config set //registry.npmjs.org/:_authToken=$token
npm publish
env:
osipov-mit: ${{ secrets.OSIPOV_NPM_TOKEN }}
nikitayutanov: ${{ secrets.YUTANOV_NPM_TOKEN }}

- name: "@gear-js/vara-ui: Publish"
if: steps.check_vara.outputs.changed == 'true'
working-directory: utils/vara-ui
run: |
export token=$(printenv $(printenv GITHUB_ACTOR))
npm install
npm run build
npm config set //registry.npmjs.org/:_authToken=$token
npm publish
env:
Expand Down
Loading
Loading