-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from anyone-yuren/deploy-gbeata
Deploy gbeata
- Loading branch information
Showing
8 changed files
with
1,443 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# 工作流名称 | ||
name: Build and Deploy | ||
|
||
on: | ||
# 指明要运行的分支,跟上面配置保持一致 | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
publish: | ||
name: 发布 ui 工作流 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
# 执行步骤 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: https://registry.npmjs.org/ | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd ./packages/gbeata | ||
pnpm install --frozen-lockfile | ||
- name: Build | ||
run: | | ||
echo ${{ github.workspace }} | ||
cd ./packages/gbeata | ||
pnpm build | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_PACKAGE }} | ||
run: npx semantic-release |
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,21 @@ | ||
module.exports = { | ||
branches: ["main"], // 指定在哪个分支下要执行发布操作 | ||
plugins: [ | ||
"@semantic-release/commit-analyzer", // 解析 commit 信息,默认就是 Angular 规范 | ||
"@semantic-release/release-notes-generator", | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
changelogFile: "CHANGELOG.md", // 把发布日志写入该文件 | ||
}, | ||
], | ||
"@semantic-release/npm", // 发布到NPM | ||
"@semantic-release/github", | ||
[ | ||
"@semantic-release/git", | ||
{ | ||
assets: ["CHANGELOG.md", "package.json"], // 前面说到日志记录和版本好是新增修改的,需要 push 回 Git | ||
}, | ||
], | ||
], | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
|
||
registry=https://registry.npmjs.org/ | ||
registry.npmjs.org/:always-auth=true | ||
registry.npmjs.org/:_authToken=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 |
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,7 @@ | ||
# gbeata | ||
|
||
## 0.0.3 | ||
|
||
### Patch Changes | ||
|
||
- test |
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.