Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Mar 19, 2024
1 parent 85c5b82 commit aeaa4ce
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
publish-npm:
runs-on: ubuntu-latest
needs:
- version-check
- lint
- tests
- storybook-tests
Expand All @@ -92,11 +91,11 @@ jobs:
- name: Publish to npm
run: cd package && npm publish
- name: Rename package directory
run: mv package "tna-frontend-${{ needs.version-check.outputs.version }}"
run: mv package "tna-frontend-${{ steps.version-check.outputs.version }}"
- name: Compress package
run: zip -r "tna-frontend-${{ needs.version-check.outputs.version }}.zip" "tna-frontend-${{ needs.version-check.outputs.version }}"
run: zip -r "tna-frontend-${{ steps.version-check.outputs.version }}.zip" "tna-frontend-${{ steps.version-check.outputs.version }}"
- name: Upload the package to the GitHub release
run: gh release upload "v${{ needs.version-check.outputs.version }}" "tna-frontend-${{ needs.version-check.outputs.version }}.zip"
run: gh release upload "v${{ steps.version-check.outputs.version }}" "tna-frontend-${{ steps.version-check.outputs.version }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -122,11 +121,11 @@ jobs:
- name: Publish to npm
run: cd package-cookie-banner && npm publish
- name: Rename package directory
run: mv package-cookie-banner "tna-frontend-cookie-banner-${{ needs.version-check.outputs.version }}"
run: mv package-cookie-banner "tna-frontend-cookie-banner-${{ steps.version-check.outputs.version }}"
- name: Compress package
run: zip -r "tna-frontend-cookie-banner-${{ needs.version-check.outputs.version }}.zip" "tna-frontend-cookie-banner-${{ needs.version-check.outputs.version }}"
run: zip -r "tna-frontend-cookie-banner-${{ steps.version-check.outputs.version }}.zip" "tna-frontend-cookie-banner-${{ steps.version-check.outputs.version }}"
- name: Upload the package to the GitHub release
run: gh release upload "v${{ needs.version-check.outputs.version }}" "tna-frontend-cookie-banner-${{ needs.version-check.outputs.version }}.zip"
run: gh release upload "v${{ steps.version-check.outputs.version }}" "tna-frontend-cookie-banner-${{ steps.version-check.outputs.version }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -152,27 +151,26 @@ jobs:
- name: Publish to npm
run: cd package-global-header && npm publish
- name: Rename package directory
run: mv package-global-header "tna-frontend-global-header-${{ needs.version-check.outputs.version }}"
run: mv package-global-header "tna-frontend-global-header-${{ steps.version-check.outputs.version }}"
- name: Compress package
run: zip -r "tna-frontend-global-header-${{ needs.version-check.outputs.version }}.zip" "tna-frontend-global-header-${{ needs.version-check.outputs.version }}"
run: zip -r "tna-frontend-global-header-${{ steps.version-check.outputs.version }}.zip" "tna-frontend-global-header-${{ steps.version-check.outputs.version }}"
- name: Upload the package to the GitHub release
run: gh release upload "v${{ needs.version-check.outputs.version }}" "tna-frontend-global-header-${{ needs.version-check.outputs.version }}.zip"
run: gh release upload "v${{ steps.version-check.outputs.version }}" "tna-frontend-global-header-${{ steps.version-check.outputs.version }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

notify-slack:
runs-on: ubuntu-latest
needs:
- publish-npm
- publish-npm-cookie-banner
- publish-npm-global-header
steps:
- uses: actions/checkout@v4
- name: Get release notes
id: get-release-notes
run: ./tasks/get-release-notes.sh "${{ needs.version-check.outputs.version }}" > RELEASE_NOTES.txt
run: ./tasks/get-release-notes.sh "${{ steps.version-check.outputs.version }}" > RELEASE_NOTES.txt
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_TITLE: "`v${{ needs.version-check.outputs.version }}` of `tna-frontend` has just been published"
SLACK_TITLE: "`v${{ steps.version-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"
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.1.45...HEAD)
## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.1.46...HEAD)

### Added
### Changed
Expand All @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
### Security

## [0.1.46](https://github.com/nationalarchives/tna-frontend/compare/v0.1.45...v0.1.46) - 2024-03-19

Version bump

## [0.1.45](https://github.com/nationalarchives/tna-frontend/compare/v0.1.44...v0.1.45) - 2024-03-19

### Changed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nationalarchives/frontend",
"version": "0.1.45",
"version": "0.1.46",
"description": "The National Archives frontend styles",
"scripts": {
"start": "storybook dev -p 6006",
Expand Down

0 comments on commit aeaa4ce

Please sign in to comment.