Skip to content

Commit 538cdae

Browse files
Add gh script
1 parent 98c1fc3 commit 538cdae

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/changesets.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
version:
1010
timeout-minutes: 15
1111
runs-on: ubuntu-latest
12+
outputs:
13+
changesets: ${{ steps.changesets.outputs }}
1214
steps:
1315
- name: Checkout Code Repository
1416
uses: actions/checkout@v4
@@ -26,6 +28,7 @@ jobs:
2628
run: pnpm install
2729

2830
- name: Create and Publish Versions
31+
id: changesets
2932
uses: changesets/action@v1
3033
with:
3134
commit: "chore: update versions"
@@ -34,3 +37,18 @@ jobs:
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3639
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
sync-gh-releases:
41+
runs-on: ubuntu-latest
42+
needs: version
43+
steps:
44+
- name: Checkout Code Repository
45+
uses: actions/checkout@v4
46+
- name: Read from CHANGELOG
47+
uses: actions/github-script@v7
48+
env:
49+
CHANGESETS: ${{ needs.version.outputs.changesets }}
50+
with:
51+
script: |
52+
const title = process.env.CHANGESETS;
53+
console.error(title ?? 'N/A', typeof title);
54+

0 commit comments

Comments
 (0)