Skip to content

Commit

Permalink
feat: add react ssr package (#587)
Browse files Browse the repository at this point in the history
This is a canary release of our react ssr package. This package add support for React frameworks that utilize Server Side Rendering (SSR) such as NextJS.

-------
* ci: update build for angular

* chore: add react ssr files and canary release

* chore: use stenciljs 4.11.0

* docs: Add new react-ssr readme to newest branch (#590)

Update README.md

* chore: remove dry run

* chore: update canary version for react ssr

* chore: add patch from #587

* chore: add line numbers and version to comment

* chore: fix bug with undefined window

* chore: update dependency

* build: Remove lerna and use npm workspace in build script (#600)

build: Remove lerna from build script

* ci: add react-ssr to release please

* chore: update to latest version

* chore: update release please config

---------

Co-authored-by: Ethan Wallace <[email protected]>
  • Loading branch information
daine and ethanWallace authored Jul 31, 2024
1 parent 04d9e4e commit bf3fd1e
Show file tree
Hide file tree
Showing 27 changed files with 10,650 additions and 442 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/compile-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,53 @@ 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 }}
publish-react-ssr:
name: Publish React SSR
needs: publish-web
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: "@cdssnc/gcds-components-react-ssr"
package: "./packages/react-ssr"
dist: "./packages/react-ssr"

steps:
- name: Git Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
with:
node-version: 18

- name: Install monorepo (react-ssr)
run: npm install

- name: Build gcds-components (react-ssr)
run: npm run build

- name: Publish ${{ matrix.name }}
uses: JS-DevTools/npm-publish@76c32bca7fbfb29fc528466ca3ae27ae9f35d42b
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
package: ${{ matrix.dist }}
tag: canary

- name: Report deployment to Sentinel
if: steps.publish.outputs.id != ''
uses: cds-snc/sentinel-forward-data-action@main
with:
input_data: '{"product": "design-system", "sha": "${{ github.sha }}", "version": "${{steps.publish.outputs.id}}", "repository": "${{ github.repository }}", "environment": "production", "status": "${{ job.status }}"}'
log_type: CDS_Product_Deployment_Data
log_analytics_workspace_id: ${{ secrets.LOG_ANALYTICS_WORKSPACE_ID }}
log_analytics_workspace_key: ${{ secrets.LOG_ANALYTICS_WORKSPACE_KEY }}

- name: Slack notify on failure
if: failure()
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 }}
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"packages/angular": "0.22.4",
"packages/react": "0.22.4",
"packages/vue": "0.22.4",
"packages/web": "0.22.4"
"packages/web": "0.22.4",
"packages/react-ssr": "0.22.4-canary.0"
}
Loading

0 comments on commit bf3fd1e

Please sign in to comment.