Skip to content

Commit 19f4a3c

Browse files
committed
add changesets action mock
1 parent db06c77 commit 19f4a3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
# PR is merged, the workflow will run again and this action will build +
6464
# publish to npm.
6565
- name: 🚀 PR / Publish
66+
if: ${{ !env.ACT }}
6667
id: changesets
6768
uses: changesets/action@v1
6869
with:
@@ -75,6 +76,13 @@ jobs:
7576
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7677
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7778

79+
- name: 🚀 PR / Publish (mock)
80+
if: ${{ env.ACT }}
81+
id: changesets
82+
run: |
83+
echo "published=true" >> "$GITHUB_OUTPUT"
84+
echo "publishedPackages=[{\"name\": \"@xx/xx\", \"version\": \"1.2.0\"}, {\"name\": \"@xx/xy\", \"version\": \"0.8.9\"}]" >> "$GITHUB_OUTPUT"
85+
7886
- name: 📦 Get package version
7987
if: steps.changesets.outputs.published == 'true'
8088
id: get_version

0 commit comments

Comments
 (0)