From aeaa4cefad6f6b1e56f1f99e9e8ee68990ee8a08 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Tue, 19 Mar 2024 10:45:16 +0000 Subject: [PATCH] Version bump --- .github/workflows/npm-publish.yml | 24 +++++++++++------------- CHANGELOG.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 184bff32..cc7ab0aa 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -69,7 +69,6 @@ jobs: publish-npm: runs-on: ubuntu-latest needs: - - version-check - lint - tests - storybook-tests @@ -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 }} @@ -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 }} @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 25340989..6518a897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/package-lock.json b/package-lock.json index 2fa49d53..038e1b49 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nationalarchives/frontend", - "version": "0.1.45", + "version": "0.1.46", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nationalarchives/frontend", - "version": "0.1.45", + "version": "0.1.46", "license": "MIT", "devDependencies": { "@babel/core": "^7.23.2", diff --git a/package.json b/package.json index f46ad07b..6918b8b3 100644 --- a/package.json +++ b/package.json @@ -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",