Compare commits
19 Commits
@marknow/w
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28e92a4288 | ||
|
|
a81db56e29 | ||
|
|
3da0cb3336 | ||
|
|
1ea06fd810 | ||
|
|
681f9ba788 | ||
|
|
6ca1fc7fbc | ||
|
|
10c6db7ebc | ||
|
|
c93c979e3f | ||
|
|
280117e9ec | ||
|
|
386c556650 | ||
|
|
1fb8a0185e | ||
|
|
c0341eac68 | ||
|
|
f5b43337a6 | ||
|
|
51424bf3f7 | ||
|
|
2c4f38f916 | ||
|
|
e951837f36 | ||
|
|
4b103e2804 | ||
|
|
d173651b50 | ||
|
|
8f552ad600 |
@@ -4,8 +4,8 @@
|
|||||||
"commit": false,
|
"commit": false,
|
||||||
"fixed": [],
|
"fixed": [],
|
||||||
"linked": [],
|
"linked": [],
|
||||||
"access": "restricted",
|
"access": "public",
|
||||||
"baseBranch": "main",
|
"baseBranch": "dev",
|
||||||
"updateInternalDependencies": "patch",
|
"updateInternalDependencies": "patch",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"privatePackages": {
|
"privatePackages": {
|
||||||
|
|||||||
10
.github/workflows/checks.yml
vendored
10
.github/workflows/checks.yml
vendored
@@ -5,8 +5,16 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
- main
|
- main
|
||||||
|
- changeset-release/main
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
branches:
|
||||||
|
- dev
|
||||||
|
- main
|
||||||
|
- changeset-release/main
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linting:
|
linting:
|
||||||
|
|||||||
11
.github/workflows/deploy-preview.yml
vendored
11
.github/workflows/deploy-preview.yml
vendored
@@ -1,11 +1,18 @@
|
|||||||
name: ▲ Deploy preview to Vercel
|
name: ▲ Deploy preview
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
branches:
|
||||||
|
- dev
|
||||||
|
- main
|
||||||
|
- changeset-release/main
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -1,8 +1,10 @@
|
|||||||
name: ▲ Deploy to Vercel
|
name: ▲ Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: [🧪 Code checking, 🎉 Release]
|
workflows:
|
||||||
|
- 🧪 Code checking
|
||||||
|
- 🎉 Release
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
66
.github/workflows/release-branch.yml
vendored
Normal file
66
.github/workflows/release-branch.yml
vendored
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
name: 🦋 Release branch
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-release:
|
||||||
|
if: github.ref_name == 'dev'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
name: Update/Create release branch
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup environment
|
||||||
|
uses: ./.github/actions/pnpm-setup
|
||||||
|
|
||||||
|
- name: Update release PR
|
||||||
|
id: changesets
|
||||||
|
uses: loreddev/changeset-action@main
|
||||||
|
with:
|
||||||
|
branch: main
|
||||||
|
commit: 'ci: 👷🦋 version packages'
|
||||||
|
title: 🦋 Release branch
|
||||||
|
publish: pnpm run release
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
update-dev:
|
||||||
|
if: github.ref_name == 'main' && github.event.pull_request.merged == true && github.event.pull_request.title == '🦋 Release branch'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Update dev branch
|
||||||
|
timeout-minutes: 2
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Release to dev
|
||||||
|
uses: devmasx/merge-branch@master
|
||||||
|
with:
|
||||||
|
type: now
|
||||||
|
from_branch: changeset-release/main
|
||||||
|
target_branch: dev
|
||||||
|
message: 'ci: 👷 update dev branch'
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
34
.github/workflows/release-preview.yml
vendored
Normal file
34
.github/workflows/release-preview.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: 👷 Release preview
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- 🧪 Code checking
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'loreddev/marknow' }}
|
||||||
|
name: Release preview
|
||||||
|
env:
|
||||||
|
HUSKY: 0
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup environment
|
||||||
|
uses: ./.github/actions/pnpm-setup
|
||||||
|
|
||||||
|
- name: Update versions
|
||||||
|
run: pnpm changeset version --snapshot next
|
||||||
|
|
||||||
|
- name: Release packages
|
||||||
|
run: pnpm run release --tag next
|
||||||
|
env:
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
@@ -1,40 +0,0 @@
|
|||||||
name: 🎉 Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: [🧪 Code checking]
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'loreddev/marknow' }}
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
name: Release
|
|
||||||
env:
|
|
||||||
HUSKY: 0
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup environment
|
|
||||||
uses: ./.github/actions/pnpm-setup
|
|
||||||
- name: Create Release PR or Public to NPM
|
|
||||||
id: changesets
|
|
||||||
uses: changesets/action@v1
|
|
||||||
with:
|
|
||||||
publish: pnpm release
|
|
||||||
commit: 'chore: 🔗🦋 version packages'
|
|
||||||
title: '🦋 Changeset: Version packages'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2023-preset Gustavo "Guz" L. de Mello
|
Copyright (c) 2023-present Gustavo "Guz" L. de Mello
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -112,12 +112,12 @@
|
|||||||
<input
|
<input
|
||||||
un-m="l-5"
|
un-m="l-5"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="vertical layout"
|
name="right to left"
|
||||||
id="vertical-input"
|
id="rtl-input"
|
||||||
bind:checked={isRtl}
|
bind:checked={isRtl}
|
||||||
on:input={() => ($id = Math.random())}
|
on:input={() => ($id = Math.random())}
|
||||||
/>
|
/>
|
||||||
<label un-text="sm" for="vertical-input">Right-to-Left</label>
|
<label un-text="sm" for="rtl-input">Right-to-Left</label>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section un-flex="~ col">
|
<section un-flex="~ col">
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
"build:pkg": "turbo run build --filter='./packages/*'",
|
"build:pkg": "turbo run build --filter='./packages/*'",
|
||||||
"dev": "turbo run dev --filter=\"@marknow/www\"",
|
"dev": "turbo run dev --filter=\"@marknow/www\"",
|
||||||
"preview": "turbo run preview --filter=\"@marknow/www\"",
|
"preview": "turbo run preview --filter=\"@marknow/www\"",
|
||||||
"release": "pnpm run build:pkg && changeset publish --access public"
|
"release": "pnpm run build:pkg && changeset publish"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^0.39.5",
|
"@antfu/eslint-config": "^0.39.5",
|
||||||
|
|||||||
@@ -42,5 +42,8 @@
|
|||||||
},
|
},
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "tests"
|
"test": "tests"
|
||||||
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user