-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:opentiny/tiny-vue into exclude-chart
- Loading branch information
Showing
5,078 changed files
with
38,078 additions
and
152,069 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Dispatch Alpha All Publish | ||
run-name: Dispatch All Publish Alpha--${{ inputs.version }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: | | ||
输入您将要发布的版本号, | ||
例如: `3.xx.xx`. | ||
required: true | ||
type: string | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
outputs: | ||
publishVersion: ${{ steps.parseVersion.outputs.publishVersion }} | ||
steps: | ||
- name: Parse Version | ||
id: parseVersion | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const version = `${{ inputs.version }}` | ||
if(!/^\d\.\d+\.\d+/.test(version)) { | ||
throw new Error('版本号格式不正确') | ||
} | ||
const publishVersion = version.slice(2) | ||
core.setOutput('publishVersion', publishVersion) | ||
- name: CheckOut Code | ||
uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.10.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm i --no-frozen-lockfile | ||
|
||
- name: Run Build Components | ||
run: pnpm build:ui -t ${{ steps.parseVersion.outputs.publishVersion }} | ||
|
||
- name: Run Build Sass Common | ||
run: pnpm build:ui saas-common -t ${{ steps.parseVersion.outputs.publishVersion }} -d saas | ||
|
||
- name: Run Build Theme | ||
run: pnpm build:theme | ||
|
||
- name: Run Build Renderless | ||
run: pnpm build:renderless | ||
|
||
- name: Run Build ThemeSaas | ||
run: pnpm build:themeSaas | ||
|
||
- name: Run Build Utils | ||
run: pnpm build:utils | ||
|
||
- name: Run Build Hooks | ||
run: pnpm build:hooks | ||
|
||
- name: Run Build Runtime | ||
run: pnpm build:runtime | ||
|
||
- name: Run Release alpha | ||
run: pnpm release:alpha | ||
|
||
- name: Publish Vue3 And Vue2 components | ||
run: pnpm pub:all && pnpm pub:utils && pnpm pub:hooks && pnpm pub:site | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }} |
116 changes: 116 additions & 0 deletions
116
.github/workflows/dispatch-renderless-theme-publish-alpha.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: Dispatch Alpha Renderless Theme Runtime | ||
run-name: Dispatch Alpha Renderless Theme Runtime--${{ inputs.components }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
components: | ||
description: | | ||
输入需要打包的模块名称,多个以英文逗号分隔, | ||
例如: `theme,renderless,runtime,docs,utils,hooks` | ||
required: true | ||
type: string | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Parse Components | ||
id: parseComponents | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const branchName = `${{ github.ref_name }}` | ||
const moduleName = `${{ inputs.components }}` | ||
const validModuleNames = ['theme', 'renderless', 'runtime', 'docs','utils','hooks'] | ||
if (!validModuleNames.some(name => moduleName.includes(name))) { | ||
throw new Error('请输入正确的包名称') | ||
} | ||
- name: CheckOut Code | ||
uses: actions/checkout@master | ||
with: | ||
ref: ${{ github.ref_name }} | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.10.0 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: pnpm i --no-frozen-lockfile | ||
|
||
- name: Run Build Theme | ||
if: contains(inputs.components, 'theme') == true | ||
run: pnpm build:theme | ||
|
||
- name: Run Build Renderless | ||
if: contains(inputs.components, 'renderless') == true | ||
run: pnpm build:renderless | ||
|
||
- name: Run Build ThemeSaas | ||
if: contains(inputs.components, 'theme-saas') == true | ||
run: pnpm build:themeSaas | ||
|
||
- name: Run Build Runtime | ||
if: contains(inputs.components, 'runtime') == true | ||
run: pnpm build:runtime | ||
|
||
- name: Run Build Utils | ||
if: contains(inputs.components, 'utils') == true | ||
run: pnpm build:utils | ||
|
||
- name: Run Build Hooks | ||
if: contains(inputs.components, 'hooks') == true | ||
run: pnpm build:hooks | ||
|
||
- name: Run Release alpha | ||
run: pnpm release:alpha -u | ||
|
||
- name: Publish | ||
run: | | ||
pnpm pub:all | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }} | ||
|
||
- name: Publish Utils | ||
if: contains(inputs.components, 'utils') == true | ||
run: | | ||
pnpm pub:utils | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }} | ||
|
||
- name: Publish Hooks | ||
if: contains(inputs.components, 'hooks') == true | ||
run: | | ||
pnpm pub:hooks | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }} | ||
|
||
- name: Publish Docs | ||
if: contains(inputs.components, 'docs') == true | ||
run: | | ||
pnpm pub:site | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.