Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ name: Publish Release

on:
push:
branches: [master]
branches: [ master ]

jobs:
setup:
if: "${{!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'Release: Version Updates')}}"
if: "${{!contains(github.event.head_commit.message, 'skip ci') &&
!contains(github.event.head_commit.message, 'Release: Version Updates')}}"
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -19,17 +20,17 @@ jobs:
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
fetch-depth: 0
ref: 'master'
ref: "master"

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
with:
main-branch-name: 'master'
main-branch-name: "master"

- name: Set Node Version
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
node-version: 24

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -41,9 +42,9 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-22-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-24-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-22-yarn-
${{ runner.os }}-24-yarn-

- name: Install Dependencies
run: yarn install --immutable
Expand Down Expand Up @@ -88,8 +89,9 @@ jobs:
# - run: yarn check:versions

publish:
if: "${{!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'Release: Version Updates')}}"
needs: [setup]
if: "${{!contains(github.event.head_commit.message, 'skip ci') &&
!contains(github.event.head_commit.message, 'Release: Version Updates')}}"
needs: [ setup ]
runs-on: ubuntu-latest
permissions:
contents: write # Required for git push and creating tags
Expand All @@ -101,18 +103,18 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
ref: 'master'
ref: "master"

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
with:
main-branch-name: 'master'
main-branch-name: "master"

- name: Set Node Version
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
node-version: 24
registry-url: "https://registry.npmjs.org"

- name: Install latest npm
run: npm install -g npm@latest
Expand All @@ -127,9 +129,9 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-22-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-24-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-22-yarn-
${{ runner.os }}-24-yarn-

- name: Install Dependencies
run: yarn install --immutable
Expand Down Expand Up @@ -178,8 +180,9 @@ jobs:
gh pr create --title "Release: Version Updates" --body "Automated release PR with version updates and package publications." --base master --head release/version-updates

deploy-docs:
if: "${{!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'Release: Version Updates')}}"
needs: [publish]
if: "${{!contains(github.event.head_commit.message, 'skip ci') &&
!contains(github.event.head_commit.message, 'Release: Version Updates')}}"
needs: [ publish ]
runs-on: ubuntu-latest
permissions:
pages: write
Expand All @@ -191,14 +194,14 @@ jobs:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
with:
fetch-depth: 0
ref: 'master'
ref: "master"

- name: Set Node Version
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
node-version: 24
cache: "yarn"
cache-dependency-path: "yarn.lock"

- name: Install Dependencies
run: yarn install --immutable
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ name: Pull Request Build

on:
pull_request:
branches: [master]
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
node: [20, 22, 24]
os: [ ubuntu-latest, macos-latest ]
node: [ 20, 22, 24 ]

steps:
- name: Checkout Code
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@826660b82addbef3abff5fa871492ebad618c9e1 # v4.3.3
with:
main-branch-name: 'master'
main-branch-name: "master"

- name: Set Node Version
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
run: yarn version:dry-run

- name: Build Docs
if: ${{ matrix.node == 22 }}
if: ${{ matrix.node == 24 }}
run: yarn build:docs

- name: Build App
Expand Down
Loading