-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(none): 增加 commit 校验 * feat(all): 🎸 增加 js-plugins
- Loading branch information
Showing
486 changed files
with
6,170 additions
and
798 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: PR build plugins | ||
on: workflow_call | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: release | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Enable Corepack | ||
id: pnpm-setup | ||
run: | | ||
corepack enable | ||
- name: Initliaze .npmrc | ||
run: > | ||
echo -e "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}\n$(cat .npmrc)" > .npmrc | ||
&& cat -n .npmrc | ||
- name: pnpm install | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build Packages | ||
run: | | ||
pnpm --filter "{js-plugins}[origin/main]" build |
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
name: Release Packages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: release | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Enable Corepack | ||
id: pnpm-setup | ||
run: | | ||
corepack enable | ||
- name: Initliaze .npmrc | ||
run: > | ||
echo -e "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}\n$(cat .npmrc)" > .npmrc | ||
&& cat -n .npmrc | ||
- name: pnpm install | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build Packages | ||
run: | | ||
pnpm --filter "{js-plugins}[origin/main]" build | ||
- name: Release and Publish Packages | ||
run: | | ||
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} && npm config set access public && pnpm --filter "{js-plugins}[origin/main]" publish --no-git-checks |
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ jobs: | |
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
|
@@ -51,4 +53,6 @@ jobs: | |
run: npm install -g [email protected] && pnpm i --frozen-lockfile | ||
|
||
- name: Publish to npm | ||
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} && npm config set access public && pnpm --filter "[HEAD^]" publish --no-git-checks | ||
run: | | ||
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} && npm config set access public && pnpm --filter "{rust-plugins}[origin/main]" publish --no-git-checks | ||
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 |
---|---|---|
|
@@ -196,3 +196,5 @@ $RECYCLE.BIN/ | |
!.yarn/versions | ||
|
||
*.farm | ||
|
||
build |
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 @@ | ||
npx --no-install commitlint --edit "$1" |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[workspace] | ||
members = [ | ||
"packages/*", | ||
"rust-plugins/*", | ||
] | ||
resolver = "2" | ||
[workspace.dependencies] | ||
|
Oops, something went wrong.