Skip to content

Commit 97ff4db

Browse files
authored
Merge pull request #569 from ForgeRock/update-publishing
ci: update-publishing
2 parents ac5eab1 + 69bfd36 commit 97ff4db

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ jobs:
7878
commit: 'chore: version-packages' # the commit message to use
7979
setupGitUser: true
8080
env:
81-
HOME: ${{ github.workspace }} # See https://github.com/changesets/action/issues/147
8281
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
83-
NPM_CONFIG_PROVENANCE: 'true'
8482

8583
- name: Publish previews to Stackblitz on PR
8684
if: steps.changesets.outputs.published == 'false'
@@ -101,6 +99,15 @@ jobs:
10199
env:
102100
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
103101

102+
- name: Format published packages for Slack
103+
if: steps.changesets.outputs.published == 'true'
104+
id: format-packages
105+
run: |
106+
PACKAGES=$(echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -r '.[] | ":package: *\(.name)* `\(.version)`"')
107+
echo "formatted<<EOF" >> $GITHUB_OUTPUT
108+
echo "$PACKAGES" >> $GITHUB_OUTPUT
109+
echo "EOF" >> $GITHUB_OUTPUT
110+
104111
- name: Send GitHub Action data to a Slack workflow
105112
if: steps.changesets.outputs.published == 'true'
106113
uses: slackapi/[email protected]
@@ -109,7 +116,7 @@ jobs:
109116
webhook: ${{ env.SLACK_WEBHOOK_URL }}
110117
webhook-type: webhook-trigger
111118
payload: |
112-
publishedPackages: steps.changesets.outputs.publishedPackages
119+
publishedPackages: ${{ steps.format-packages.outputs.formatted }}
113120
114121
- name: Run code coverage
115122
uses: codecov/codecov-action@v5

.npmrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
link-workspace-packages=true
2-
strict-peer-dependencies=false
3-
save-workspace-protocol=rolling
4-
save-prefix=""
1+
registry=https://registry.npmjs.org/

pnpm-workspace.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ packages:
66
catalog:
77
'@reduxjs/toolkit': ^2.2.5
88
immer: ^10.1.1
9+
10+
link-workspace-packages: true
11+
strict-peer-dependencies: false
12+
save-workspace-protocol: rolling
13+
save-prefix: ''

0 commit comments

Comments
 (0)