Skip to content

Commit

Permalink
Fix Vara UI publish (#1358)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitry Osipov <dmith.osipov@gmail.com>
  • Loading branch information
nikitayutanov and osipov-mit authored Aug 25, 2023
1 parent ac3cfe6 commit b9af777
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/CI-CD-gear-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,6 @@ jobs:
- 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 18.x
uses: actions/setup-node@v2.1.5
with:
Expand Down
8 changes: 8 additions & 0 deletions utils/vara-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ A React library that provides components that are used across Vara applications.

## Installation

Install package:

```sh
npm install @gear-js/vara-ui
```
Expand All @@ -24,6 +26,12 @@ or
yarn add @gear-js/vara-ui
```

Import styles in application's root:

```jsx
import '@gear-js/vara-ui/styles.css';
```

## Getting started

Simple as it is, here's quick example:
Expand Down
4 changes: 2 additions & 2 deletions utils/vara-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions utils/vara-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gear-js/vara-ui",
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"description": "React UI components used across Vara applications",
"author": "Gear Technologies",
Expand Down Expand Up @@ -55,5 +55,7 @@
},
"files": [
"dist"
]
],
"main": "dist/vara-ui.js",
"types": "dist/index.d.ts"
}

0 comments on commit b9af777

Please sign in to comment.