Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 24, 2023
1 parent d6b20c6 commit 7a6ce0d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/actions/tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ runs:
- name: Start Storybook
run: npm start &
shell: bash
- uses: nev7n/wait_for_response@v1
with:
url: "http://localhost:6006"
responseCode: 200
timeout: 30000
interval: 500
- name: Run tests
run: npm run test
shell: bash
4 changes: 3 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ jobs:
run: cd package && npm publish
- name: Rename package directory
run: mv package "nationalarhives-frontend-${{ needs.check.outputs.version }}"
- name: Compress package
run: zip -r "nationalarhives-frontend-${{ needs.check.outputs.version }}.zip" "nationalarhives-frontend-${{ needs.check.outputs.version }}"
- name: Upload the package to the GitHub release
run: gh release upload "v${{ needs.check.outputs.version }}" "nationalarhives-frontend-${{ needs.check.outputs.version }}"
run: gh release upload "v${{ needs.check.outputs.version }}" "nationalarhives-frontend-${{ needs.check.outputs.version }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- '**'
- '!main'

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- `tna-aside` now has a `--tight` modifier with less padding
- Chips can be made plain with `tna-chip--plain`
- Visual regression tests can now be run in the Storyobok UI
- Visual regression tests can now be run in the Storybook UI
- Allow right/left margins to be added to columns
- Hero components can have different image sources with `<source>` elements

Expand All @@ -34,7 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Header and header group class modifiers have been moved to separate blocks (`tna-heading tna-heading--xl` -> `tna-heading-xl`)
- `space-below` has been replaced with `space-above` and all paddings in between page elements reassessed
- Tweak spacing on hero component and `<hr>` elements
- Added `tna-button-group` around newletter subscription button in the footer
- Added `tna-button-group` around newsletter subscription button in the footer
- Updated Storybook to `7.5.1`

### Removed
Expand Down

0 comments on commit 7a6ce0d

Please sign in to comment.