Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 16, 2023
1 parent 2879e7b commit 61310d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish new release
name: Publish release

on:
release:
Expand Down Expand Up @@ -99,14 +99,11 @@ jobs:
- uses: actions/checkout@v3
- name: Get release notes
id: get-release-notes
run: |
RELEASE_NOTES=$(./tasks/get-release-notes.sh "${{ needs.check.outputs.version }}")
echo $RELEASE_NOTES
echo "RELEASE_NOTES=$RELEASE_NOTES" >> "$GITHUB_OUTPUT"
run: ./tasks/get-release-notes.sh "${{ needs.check.outputs.version }}" > RELEASE_NOTES.txt
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_TITLE: "`v${{ needs.check.outputs.version }}` of `tna-frontend` has just been published"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_ICON: "https://raw.githubusercontent.com/nationalarchives/tna-frontend/main/src/nationalarchives/assets/images/apple-touch-icon.png"
MSG_MINIMAL: true
SLACK_MESSAGE: ${{ env.RELEASE_NOTES }}
SLACK_MESSAGE: $(cat RELEASE_NOTES.txt)
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ storybook
*.tgz
build-storybook.log
chromatic.config.json
chromatic.log
chromatic.log
RELEASE_NOTES.txt

0 comments on commit 61310d9

Please sign in to comment.