Skip to content

Commit

Permalink
chore: Merge main branch with monorepo changes into gcds-components-s…
Browse files Browse the repository at this point in the history
…sr branch (#452)

* fix: header slots in story (#362)

* chore: release v0.18.0

* Export ContentValues type in gcds-grid to fix angular build (#368)

* Release/v0.18.1 (#369)

* Update changelog

* Update version to 0.18.1

* fix: update renovate base branch (#370)

Switching Renovate to use `main` as the base branch instead of `develop` since we will be removing the `develop` branch very soon.

* chore(deps): update all non-major github action dependencies (#359)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency prettier to v3.1.1 (#361)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update all patch dependencies (#331)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* ci: prep for removing the `develop` branch (#371)

* chore(deps): update dependency @types/react to v18.2.47 (#373)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): lock file maintenance (#365)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add release generator (#372)

* chore: bootstrap releases for path: .

* ci: update release version

* ci: add release generator action

* ci: update release please config

* ci: repurpose build action (#378)

* fix: repurpose build action

* fix: run storybook for all PRs

* chore(deps): update all non-major github action dependencies (#380)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update actions/create-github-app-token action to v1.6.4 (#384)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix(deps): update all patch dependencies to v7.6.10 (#386)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency prettier to v3.2.4 (#385)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Move toggle navigation focusout logic form top-nav to nav-group (#387)

* Move toggle nav focusout logic form topnav to navgroup

* PR feedback

Co-authored-by: Daine Trinidad <[email protected]>

---------

Co-authored-by: Daine Trinidad <[email protected]>

* chore: synced file(s) with cds-snc/site-reliability-engineering (#414)

chore: synced local '.github/workflows/ossf-scorecard.yml' with remote 'tools/sre_file_sync/ossf-scorecard.yml'

Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>

* chore(deps): update all non-major github action dependencies (#422)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: lerna monorepo config (#388)

* chore: usage with lerna, prevents root from being published

* fix: update manifest

* fix: update config

* fix: change config

* chore: remove root path in config

* ci: changes to release please config

* ci: remove package config, move to root

* ci: test diff changelog path

* ci: update plugins

* ci: update changelog path

* ci: remove root

* chore: update workspace

* chore: update build check

* chore: update build workflow

* chore: path fixes

* chore: update test workflow

* chore: remove tsconfig that was prev added

* chore: cleanup

* chore: remove release please changes from this PR

* chore: remove release please changes from mono repo change PR

* chore: cleanup gh workflow

* chore: adding auto generated readmes

* ci: update pubish workflow

* chore: update storybook workflow

* chore: Upgrade lerna

* test: testing the workflow in PRs

* test: testing commands without publishing or uploading

* fix: invalid syntax on workflow file

* chore: syntax formatting with commented out code

* chore: more syntax formatting

* fix: revert react output changes for now, opened ticket

* chore: typo

* chore: remove commented out code for testing

* chore: cleanup

* chore: cleanup

* chore: PR feedback, remove extra step

* fix: storybook spacing in component preview (#427)

fix: fix storybook spacing in component preview

* docs: Update installation instructions for the monorepo changes (#428)

* Update installation instructions

* chore: cleanup

* fix: updated french

* chore: formatting

* chore: synced file(s) with cds-snc/site-reliability-engineering (#429)

chore: synced local '.github/workflows/ossf-scorecard.yml' with remote 'tools/sre_file_sync/ossf-scorecard.yml'

Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>

* fix: change release please config (#430)

* fix: change release please config

* chore: update config, hide chores

* chore: test not updating peer deps

* chore: test different strategy

* chore: add group PR title pattern

* chore: test peer deps

* chore: update to packages

* chore: remove node-workspace plugin

* chore: update manifest.json

* chore: remove linked-versions plugin

* chore: add back linked versions plugin, test different config for title

* chore: test remove title pattern

* chore: remove linked-

* chore: typo

* ci: add workflow dispatch to release generator gh action (#434)

* ci: workflow fixes (#436)

* ci: workflow fixes

* Update release-generator.yml

* chore: change include component in tag

* chore: remove include-component-in-tag as it produces the wrong version

* chore: test new config

* chore: update peer deps setting

* chore: target this branch config

* chore: prep for production

* chore: prep for prod

* chore(deps): update all non-major github action dependencies (#445)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency prettier to v3.2.5 (#444)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore: add changelog translation (#449)

* chore: Storybook events and property page accessibility (#443)

* Basic table reformatting

* Clear identification of event and slot rows

* Add logic to translate hide/copy buttons

* Fix typo

* Remove some old content CSS

* Add missing logic + switch to mutation observer to avoid flash

* Remove border + remove console.log

* Remove box-shadow

* refactor: replace gcds-button skip-to-href in gcds-header with gcds-link component (#451)

refactor: replace gcds-button skip-to-href with gcds-link component

* refactor: button component (css rewrite + remove button-style prop) (#450)

* feat: update token package

* refactor: CSS rewrite

* refactor: remove button-style prop from button component

* chore: GCDS Components Release v0.19.0 (#439)

* chore: GCDS Components Release

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* update release changelogs

* update lerna version to match release version

* update main changelog for release

---------

Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>
Co-authored-by: Melanie Boeckmann <[email protected]>

* Build gcds-components-ssr into monorepo/workspaces

* Update components package to latest version in SSR package

* fix: Fixes identified in OCADU report (a11y and usability) (#446)

* Change input autocomplete to accept any string

* Add hidden text for card tag

* Update footer landmarks to be labelled by headings

* Updated readme files

* chore: GCDS Components Release v0.19.1 (#453)

* chore: GCDS Components Release

* Update main changelog + lerna.json

---------

Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>
Co-authored-by: Ethan Wallace <[email protected]>

* Fix gcds-header CSS

---------

Co-authored-by: Melanie Boeckmann <[email protected]>
Co-authored-by: Daine Trinidad <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: sre-read-write[bot] <92993749+sre-read-write[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Feb 27, 2024
1 parent ad49203 commit a2a5f75
Show file tree
Hide file tree
Showing 65 changed files with 39,476 additions and 17,626 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-components.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build components
on:
pull_request:
branches:
- main

jobs:
build-packages:
name: Build all packages
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install repo
run: npm install

- name: Build gcds-components
run: npm run build

build-storybook:
name: Build storybook
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install gcds-components
run: npm install

- name: Build gcds-components
run: npm run build

- name: Build Storybook
run: npm run build-storybook
29 changes: 6 additions & 23 deletions .github/workflows/compile-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,18 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@5ef044f9d09786428e6e895be6be17937becee3a
uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install ${{ matrix.name }}
run: npm install
working-directory: ${{ matrix.package }}

- name: Build ${{ matrix.name }}
run: npm run build
working-directory: ${{ matrix.package }}

- name: Publish ${{ matrix.name }}
uses: JS-DevTools/npm-publish@3a3ce8768f68335c199746eadc16bcc7ddda963b
uses: JS-DevTools/npm-publish@9c9fb626973e955616b3913bfbd10ddf40b16ad7
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -113,31 +111,18 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Setup Node
uses: actions/setup-node@5ef044f9d09786428e6e895be6be17937becee3a
uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install repo
run: npm install

- name: Install gcds-components
run: npm install
working-directory: ./packages/web

- name: Build gcds-components
run: npm run build
working-directory: ./packages/web

- name: Install ${{ matrix.name }}
- name: Install monorepo (web, react, angular)
run: npm install
working-directory: ${{ matrix.package }}

- name: Build ${{ matrix.name }}
- name: Build gcds-components (web, react, angular)
run: npm run build
working-directory: ${{ matrix.package }}

- name: Publish ${{ matrix.name }}
uses: JS-DevTools/npm-publish@3a3ce8768f68335c199746eadc16bcc7ddda963b
uses: JS-DevTools/npm-publish@9c9fb626973e955616b3913bfbd10ddf40b16ad7
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -155,7 +140,6 @@ jobs:
if: steps.publish.outputs.id != ''
run: |
PUBLISHED_PACKAGE="${{ steps.publish.outputs.id }}"
mkdir -p ./tmp \
&& npm install --prefix ./tmp "$PUBLISHED_PACKAGE" \
&& cd ./tmp/node_modules
Expand All @@ -182,4 +166,3 @@ jobs:
run: |
json='{"blocks":[{"type":"section","text":{"type":"mrkdwn","text":":red: Publish ${{ matrix.name }} failed: <https://github.com/cds-snc/gcds-components/actions/workflows/compile-and-publish.yml|Publish packages>"}}]}'
curl -X POST -H 'Content-type: application/json' --data "$json" ${{ secrets.SLACK_WEBHOOK_OPS }}
2 changes: 1 addition & 1 deletion .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@75cb7af1033cfb77c9fc7d8abc30420008f558f4
uses: ossf/scorecard-action@0ae0fb3a2ca18a43d6dea9c07cfb9bd01d17eae1
with:
results_file: ossf-results.json
results_format: json
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/publish-storybook-staging.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/publish-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,19 @@ jobs:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/setup-node@5ef044f9d09786428e6e895be6be17937becee3a
- uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install gcds-components
run: npm install
working-directory: ./packages/web

- name: Build gcds-components
run: npm run build
working-directory: ./packages/web

- name: Build storybook
run: npm run build-storybook
working-directory: ./packages/web


- name: Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
with:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Generator
on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@f4c6bf6752984b3a29fcc135a5e70eb792c40c6b # v1.8.0
id: sre_app_token
with:
app-id: ${{ secrets.SRE_APP_ID }}
private-key: ${{ secrets.SRE_APP_PRIVATE_KEY }}

- uses: google-github-actions/release-please-action@cc61a07e2da466bebbc19b3a7dd01d6aecb20d1e # v4.0.2
id: release
with:
token: ${{ steps.sre_app_token.outputs.token }}
86 changes: 0 additions & 86 deletions .github/workflows/renovate-pr-build.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Run Tests
on:
on:
pull_request:
branches:
- main
- develop

jobs:
build-deploy:
Expand All @@ -12,14 +11,13 @@ jobs:
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@5ef044f9d09786428e6e895be6be17937becee3a

- uses: actions/setup-node@25b062c917b0c75f8b47d8469aff6c94ffd89abb
with:
node-version: 18

- name: Install gcds-components
run: npm install
working-directory: ./packages/web

- name: Run tests
run: npm run test
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packages/angular": "0.19.1",
"packages/react": "0.19.1",
"packages/web": "0.19.1"
}
Loading

0 comments on commit a2a5f75

Please sign in to comment.