Skip to content

Commit

Permalink
readme typos and pipeline fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maphel committed Sep 4, 2023
1 parent e166ea4 commit 9a56514
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,32 @@ jobs:
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0

- name: Fetch tags
run: git fetch --tags

- name: Extract version from latest Git tag or use default
run: |
TAG_NAME=$(git tag | tail -n 1) # Fetch the latest tag
if [ -z "$TAG_NAME" ]; then # Check if TAG_NAME is empty
echo "No tags found. Using default version 1.0.0."
VERSION="1.0.0"
else
VERSION=${TAG_NAME#*v}
TAG_NAME=$(git tag | tail -n 1)
VERSION=${TAG_NAME#*v}
if [[ -z "$VERSION" ]]; then
VERSION="0.0.1" # Default version
fi
npm version $VERSION --no-git-tag-version
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Commit and push updated package.json on main
run: |
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
git config --local user.name "maphel"
git add package.json
git commit -m "Update package.json version to $VERSION on main"
git commit -m "Update package.json version to ${{ env.VERSION }} on main"
git push origin main
publish:
needs: update-master-to-tagged-version
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -60,7 +58,7 @@ jobs:

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ classes(...args: ClassProps[]): string;
```

### Parameters
- `args`: ClassValue[]
Array of `ClassValue` elements to concatenate.
- `args`: CLassProps[]
Array of `CLassProps` elements to concatenate.

### Return Value
Returns a concatenated string of class names based on `args`.
Expand Down

0 comments on commit 9a56514

Please sign in to comment.