Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2024-08-21 14:53:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
00800b920085228b2087e98655816a4bc7436245
00800b92
1 parent
36631528
changeset ci fixes
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
46 行增加
和
9 行删除
.github/workflows/changesets.yml
.github/workflows/update_snapshot_pr.yml
ci/get_version.sh
.github/workflows/changesets.yml
查看文件 @
00800b9
...
...
@@ -10,6 +10,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions
:
contents
:
write
pull-requests
:
write
jobs
:
release
:
...
...
@@ -33,17 +34,24 @@ jobs:
-
name
:
Install dependencies
run
:
pnpm install
-
name
:
Make PR title
id
:
getver
run
:
echo "TITLE=v$(./ci/get_version.sh)" >> "$GITHUB_OUTPUT"
-
name
:
Create Release Pull Request
id
:
changesets
uses
:
changesets/action@v1
with
:
title
:
${{ steps.getver.outputs.TITLE }}
commit
:
${{ steps.getver.outputs.TITLE }}
version
:
pnpm ci:version
publish
:
pnpm ci:publish
env
:
# requires repo and read:user access
GITHUB_TOKEN
:
${{ secrets.CHANGESET_GH_TOKEN }}
outputs
:
hasPublishedKotlin
:
${{ steps.changesets.outputs.published == 'true' }}
publishedPackages
:
${{ steps.changesets.outputs.publishedPackages }}
hasPublished
:
${{ steps.changesets.outputs.published == 'true' }}
debug-outputs
:
needs
:
release
...
...
@@ -52,4 +60,30 @@ jobs:
steps
:
-
name
:
"
echo
outputs"
run
:
|
echo ${{ steps.changesets.outputs.publishedPackages }}
\ No newline at end of file
echo ${{ needs.release.outputs.publishedPackages }}
echo ${{ needs.release.outputs.hasPublished }}
update-snapshot
:
needs
:
release
name
:
Update SNAPSHOT
if
:
${{ needs.release.outputs.hasPublished == 'true' }}
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Repo
uses
:
actions/checkout@v4
-
name
:
Update snapshot
id
:
update
run
:
echo "SNAPSHOT_VERSION=$(./ci/update_snapshot_version.sh)" >> "$GITHUB_OUTPUT"
-
name
:
Log version
env
:
SNAPSHOT_VERSION
:
${{ steps.update.outputs.SNAPSHOT_VERSION }}
run
:
echo $SNAPSHOT_VERSION
-
name
:
Create Update SNAPSHOT Pull Request
uses
:
peter-evans/create-pull-request@v6
with
:
branch
:
dl/update_snapshot_ver
title
:
Prepare snapshot version ${{ steps.update.outputs.SNAPSHOT_VERSION }}
...
...
.github/workflows/update_snapshot_pr.yml
查看文件 @
00800b9
name
:
Update SNAPSHOT PR action
name
:
Manually create SNAPSHOT update PR
on
:
workflow_dispatch
:
push
:
# only need on new version tags
tags
:
-
v*
concurrency
:
${{ github.workflow }}-${{ github.ref }}
permissions
:
contents
:
write
pull-requests
:
write
jobs
:
release
:
update-snapshot
:
name
:
Update SNAPSHOT
runs-on
:
ubuntu-latest
...
...
@@ -21,7 +18,7 @@ jobs:
-
name
:
Checkout Repo
uses
:
actions/checkout@v4
-
name
:
Update snapshot
-
name
:
Update snapshot
id
:
update
run
:
echo "SNAPSHOT_VERSION=$(./ci/update_snapshot_version.sh)" >> "$GITHUB_OUTPUT"
...
...
ci/get_version.sh
0 → 100755
查看文件 @
00800b9
#!/bin/bash
set
-e
set
-x
PACKAGE_VERSION
=
$(
cat ./package.json | jq -r
'.version'
)
echo
"
$PACKAGE_VERSION
"
...
...
请
注册
或
登录
后发表评论