Skip to content

Commit be81625

Browse files
authored
Merge branch 'master' into test-release
2 parents 52bb0a7 + 70664d8 commit be81625

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,20 +123,30 @@ jobs:
123123
- run: yarn install --prefer-offline
124124

125125
- name: Deploy snapshot
126-
id: deploy_snapshot
127126
run: |
128127
yarn changeset version --snapshot $RELEASE_TAG
129128
yarn nx run-many --target=build
130-
yarn changeset publish --tag alpha --no-git-tag >> snapshot_response
131-
{
132-
echo "snapshot_response<<EOF"
133-
cat snapshot_response
134-
echo "EOF"
135-
} >> "$GITHUB_OUTPUT"
129+
yarn changeset publish --tag alpha --no-git-tag
136130
env:
137131
GITHUB_TOKEN: ${{ env.github-token }}
138132
RELEASE_TAG: ${{ env.snapshot-release-tag }}
139133

134+
- name: Get snapshot versions
135+
id: get_snapshot_versions
136+
run: |
137+
PACKAGES=(
138+
"@eddeee888/operation-location-migration"
139+
"@eddeee888/@eddeee888/gcg-server-config"
140+
"@eddeee888/gcg-typescript-resolver-files"
141+
)
142+
143+
echo "versions<<EOF" >> $GITHUB_OUTPUT
144+
for pkg in "${PACKAGES[@]}"; do
145+
version=$(npm view "$pkg" dist-tags.alpha)
146+
echo "- \`$pkg@$version\`"
147+
done
148+
echo "EOF" >> $GITHUB_OUTPUT
149+
140150
- name: Report success
141151
if: success()
142152
uses: octokit/[email protected]
@@ -145,7 +155,7 @@ jobs:
145155
owner: ${{ github.repository_owner }}
146156
repo: ${{ github.event.repository.name }}
147157
issue_number: ${{ github.event.issue.number }}
148-
body: '✅ Successfully published package/s:\n ```${{ steps.deploy_snapshot.outputs.snapshot_response }}```'
158+
body: '✅ Successfully published package/s:\n ```${{ steps.get_snapshot_versions.outputs.versions }}```'
149159
env:
150160
GITHUB_TOKEN: ${{ env.github-token }}
151161

0 commit comments

Comments
 (0)