Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish
on:
push:
branches:
- "+([1-9])?(.{+([1-9]),x}).x"
- "[12].[0-9x]+.[0-9x]+"
- main
- next
- alpha
Expand All @@ -19,30 +19,32 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12
- id: yarn-cache-dir
- id: vars
name: Find Yarn's cache folder
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
run: |
echo "::set-output name=path::$(yarn config get cacheFolder)"
echo "::set-output name=commithash::$(git rev-parse --short HEAD)"
- name: Cache node modules
uses: actions/cache@v2
id: yarn-cache
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir.outputs.path }}
key: ${{ runner.os }}-yarn-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.vars.outputs.path }}
key: ${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.cache-name }}-
${{ runner.os }}-yarn-
${{ runner.os }}-
${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-
- name: Install dependencies
# if: ${{ !steps.yarn-cache.outputs.cache-hit }}
env:
CI: true
run: |
yarn install
yarn ci
- name: Build All Packages
- name: Build
run: yarn run build
- name: Test
env:
CI: true
run: yarn run test --coverage

publish:
needs: tests
Expand All @@ -53,21 +55,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- id: yarn-cache-dir
- id: vars
name: Find Yarn's cache folder
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
run: |
echo "::set-output name=path::$(yarn config get cacheFolder)"
echo "::set-output name=commithash::$(git rev-parse --short HEAD)"
- name: Cache node modules
uses: actions/cache@v2
id: yarn-cache
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir.outputs.path }}
key: ${{ runner.os }}-yarn-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.vars.outputs.path }}
key: ${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.cache-name }}-
${{ runner.os }}-yarn-
${{ runner.os }}-
${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-
- name: Install dependencies
# if: ${{ !steps.yarn-cache.outputs.cache-hit }}
env:
Expand All @@ -81,4 +81,4 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: yarn semantic-release
40 changes: 20 additions & 20 deletions .github/workflows/test.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,32 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 12
- id: yarn-cache-dir
- id: vars
name: Find Yarn's cache folder
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
run: |
echo "::set-output name=path::$(yarn config get cacheFolder)"
echo "::set-output name=commithash::$(git rev-parse --short HEAD)"
- name: Cache node modules
uses: actions/cache@v2
id: yarn-cache
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir.outputs.path }}
key: ${{ runner.os }}-yarn-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.vars.outputs.path }}
key: ${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.cache-name }}-
${{ runner.os }}-yarn-
${{ runner.os }}-
${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-
- name: Install dependencies
# if: ${{ !steps.yarn-cache.outputs.cache-hit }}
env:
CI: true
run: |
yarn install
yarn ci
- name: Build All Packages
- name: Build
run: yarn run build
- name: Test
env:
CI: true
run: yarn run test --coverage

test_publish:
needs: tests
Expand All @@ -45,21 +47,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 12
- id: yarn-cache-dir
- id: vars
name: Find Yarn's cache folder
run: echo "::set-output name=path::$(yarn config get cacheFolder)"
run: |
echo "::set-output name=path::$(yarn config get cacheFolder)"
echo "::set-output name=commithash::$(git rev-parse --short HEAD)"
- name: Cache node modules
uses: actions/cache@v2
id: yarn-cache
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache-dir.outputs.path }}
key: ${{ runner.os }}-yarn-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.vars.outputs.path }}
key: ${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ env.cache-name }}-
${{ runner.os }}-yarn-
${{ runner.os }}-
${{ runner.os }}-yarn-${{ steps.vars.outputs.commithash }}-
- name: Install dependencies
# if: ${{ !steps.yarn-cache.outputs.cache-hit }}
env:
Expand All @@ -75,4 +75,4 @@ jobs:
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > /home/runner/work/_temp/.npmrc
npx semantic-release --dry-run --debug -b $GITHUB_HEAD_REF
yarn run semantic-release --dry-run --debug -b $GITHUB_HEAD_REF
8 changes: 3 additions & 5 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
branch: main
repositoryUrl: "https://github.com/ri7nz/rescript-chakra.git"
branches:
- "+([1-9])?(.{+([1-9]),x}).x"
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- next
- name: alpha
prerelease: true
- name: beta
- name: next
prerelease: true
ci: false
dryRun: false
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ All of Style Props implementation is write in File:[Chakra__MakeProps.res](https
- [ ] GridItem
- [x] SimpleGrid
- [x] Stack
- [x] VStack
- [x] HStack
- [x] Wrap
- [ ] WrapItem
- [x] WrapItem

### Forms
- [x] Button
Expand Down
Loading