17 Commits

Author SHA1 Message Date
renovate[bot]
c6b20ed076 Add renovate.json 2023-07-20 19:56:42 +00:00
Guz
6fdad98663 fix: typo 2023-07-20 16:15:31 -03:00
Guz
681f9ba788 Merge pull request #23 from LoredDev/changeset-release/main
🦋 Release branch
2023-07-07 15:42:23 -03:00
github-actions[bot]
6ca1fc7fbc ci: 👷🦋 version packages 2023-07-07 18:42:04 +00:00
Guz013
10c6db7ebc fix: 🐛 release branch workflow triggers 2023-07-07 15:40:47 -03:00
Guz
c93c979e3f chore: 🚀 release changes
🦋 Release branch
2023-07-07 15:37:44 -03:00
github-actions[bot]
280117e9ec ci: 👷🦋 version packages 2023-07-07 18:36:56 +00:00
Guz013
386c556650 fix: 🐛 (hopefully) workflow triggers 2023-07-07 15:35:52 -03:00
Guz013
1fb8a0185e ci: 👷 simplified release branch workflow 2023-07-07 15:35:14 -03:00
Guz013
c0341eac68 chore: 🔧 👷 code style in workflows 2023-07-07 15:17:05 -03:00
Guz013
f5b43337a6 ci: 👷 deploy and check code in release branch 2023-07-07 15:12:21 -03:00
Guz013
51424bf3f7 ci: 👷 workflow triggers 2023-07-07 15:08:32 -03:00
Guz013
2c4f38f916 ci: 👷 loredflow workflows 2023-07-07 14:59:25 -03:00
Guz013
e951837f36 chore: 🔧 rename workflows 2023-07-07 14:59:03 -03:00
Guz013
4b103e2804 chore: 🔧 fix package access 2023-07-07 14:58:06 -03:00
Guz
d173651b50 fix: rtl checkbox hotfix 2023-07-03 19:44:26 -03:00
Guz
8f552ad600 Merge pull request #21 from LoredDev/main
Update dev branch
2023-07-03 17:13:10 -03:00
12 changed files with 121 additions and 52 deletions

View File

@@ -4,8 +4,8 @@
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"access": "public",
"baseBranch": "dev",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {

View File

@@ -5,8 +5,16 @@ on:
branches:
- dev
- main
- changeset-release/main
pull_request:
types: [opened, synchronize, reopened]
branches:
- dev
- main
- changeset-release/main
types:
- opened
- synchronize
- reopened
jobs:
linting:

View File

@@ -1,11 +1,18 @@
name: ▲ Deploy preview to Vercel
name: ▲ Deploy preview
on:
push:
branches:
- dev
pull_request:
types: [opened, synchronize, reopened]
branches:
- dev
- main
- changeset-release/main
types:
- opened
- synchronize
- reopened
jobs:
deploy:

View File

@@ -1,8 +1,10 @@
name: ▲ Deploy to Vercel
name: ▲ Deploy
on:
workflow_run:
workflows: [🧪 Code checking, 🎉 Release]
workflows:
- 🧪 Code checking
- 🎉 Release
types:
- completed
branches:

49
.github/workflows/release-branch.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: 🦋 Release branch
on:
push:
branches:
- dev
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
update-release:
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 }}
- name: Update dev branch
if: steps.changesets.outputs.hasChangesets == 'false'
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
View 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 }}

View File

@@ -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 }}

View File

@@ -1,6 +1,6 @@
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
of this software and associated documentation files (the "Software"), to deal

View File

@@ -112,12 +112,12 @@
<input
un-m="l-5"
type="checkbox"
name="vertical layout"
id="vertical-input"
name="right to left"
id="rtl-input"
bind:checked={isRtl}
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>
</section>
<section un-flex="~ col">

View File

@@ -17,7 +17,7 @@
"build:pkg": "turbo run build --filter='./packages/*'",
"dev": "turbo run dev --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": {
"@antfu/eslint-config": "^0.39.5",

View File

@@ -42,5 +42,8 @@
},
"directories": {
"test": "tests"
},
"publishConfig": {
"access": "public"
}
}

6
renovate.json Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}