Skip to content

Commit

Permalink
Merge pull request #1379 from mi6/cherry-pick-v3-site-build-release
Browse files Browse the repository at this point in the history
cherry-pick v3 site build & release
  • Loading branch information
GCHQ-Developer-299 authored Feb 19, 2025
2 parents 2756e14 + 9b12835 commit 470314c
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check-versions-to-develop-design-system-v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check Versions V3
permissions: read-all

on:
repository_dispatch:
types: design-system-release-v3

jobs:
ic-design-system-install-comps:
name: "IC Design System Install Comps V3"
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
with:
ref: v3.0.0/develop
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 #v3
with:
node-version: 16
- uses: browser-actions/setup-chrome@latest
- name: Install latest components
run: |
DOCS_VERSION=$(npm view @ukic/docs@next version)
FONTS_VERSION=$(npm view @ukic/fonts@next verion)
REACT_VERSION=$(npm view @ukic/react@next version)
WEB_COMPS_VERSION=$(npm view @ukic/web-components@next version)
CANARY_DOCS_VERSION=$(npm view @ukic/canary-docs@next version)
CANARY_WEB_COMPS_VERSION=$(npm view @ukic/canary-web-components@next version)
CANARY_REACT_VERSION=$(npm view @ukic/canary-react@next version)
npm install @ukic/docs@$DOCS_VERSION @ukic/fonts@$FONTS_VERSION @ukic/react@$REACT_VERSION @ukic/web-components@$WEB_COMPS_VERSION @ukic/canary-docs@$CANARY_DOCS_VERSION @ukic/canary-react@$CANARY_REACT_VERSION @ukic/canary-web-components@$CANARY_WEB_COMPS_VERSION
- name: Create check-versions Pull Request
uses: peter-evans/create-pull-request@4e1beaa7521e8b457b572c090b25bd3db56bf1c5 #v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: "check-versions-v3 -> v3.0.0/develop"
commit-message: "chore(root): Update to latest versions"
body: "Github action updated package versions"
branch: check-versions-v3
base: v3.0.0/develop
25 changes: 25 additions & 0 deletions .github/workflows/release-design-system-v3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release V3
permissions: read-all

on:
pull_request:
branches:
- v3.0.0/develop
types: [closed]

jobs:
create-pr:
if: github.event.pull_request.head.ref == 'check-versions-v3' && github.event.pull_request.merged == true
name: "Create PR"
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 #v3
with:
node-version: 18
- uses: browser-actions/setup-chrome@latest
- name: Create v3 develop -> v3 main PR
run: |
curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/mi6/ic-design-system/pulls" -d '{"title":"V3 Develop -> V3 Main","body":"Latest updates with latest package versions","head":"v3.0.0/develop","base":"v3.0.0/main"}'

0 comments on commit 470314c

Please sign in to comment.