Skip to content

Commit

Permalink
chore: upgrade Yarn to the latest version
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Koops <[email protected]>
  • Loading branch information
jonkoops committed Dec 11, 2024
1 parent 53d2298 commit 0c74603
Show file tree
Hide file tree
Showing 11 changed files with 19,488 additions and 14,504 deletions.
14 changes: 4 additions & 10 deletions .github/workflows-src/partials/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/cache@v2
id: yarn-cache
name: Load npm deps from cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# v5 build
- uses: actions/cache@v2
id: site-cache
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@ jobs:
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
# Injected by generate-workflows.js
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/cache@v2
id: yarn-cache
name: Load npm deps from cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# build
- uses: actions/cache@v2
id: site-cache
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ jobs:
with:
token: ${{ secrets.GH_TOKEN_REDALLEN }} # needs to be an admin token to get around branch protection
# Injected by generate-workflows.js
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: actions/cache@v2
id: yarn-cache
name: Load npm deps from cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
node-version: 22
- run: corepack enable
- run: yarn install --immutable
# v6 build
- uses: actions/cache@v2
id: site-cache
Expand Down
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ static

size-plugin.json
**/generated/**/*.js

# Yarn
# See: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ The PatternFly Org is the source for the official documentation for PatternFly.

## Development

Development setup requires yarn. If you do not already have yarn installed on your system, see https://yarnpkg.com/en/.
Development setup requires yarn. If you do not already have yarn installed on your system, see https://yarnpkg.com/getting-started.

A Node version greater than 18.16.0 is also required.
A Node version 22 or greater is also required.

### Live Reload Server

Expand All @@ -28,8 +28,6 @@ The site can be built with:

The static assets get copied to build/patternfly-org.

If you see errors, make sure that the version of the `package.json` file in `packages/documentation-framework` matches the version of the `"@patternfly/documentation-framework"` dependency in the `package.json` file in `packages/documentation-site`.

### Deploy

When you submit a PR, previews should be automatically generated for you and uploaded as PR comments. This takes between 5-10 minutes.
Expand Down
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.0.1",
"main": "index.js",
"license": "MIT",
"packageManager": "[email protected]+sha512.3003a14012e2987072d244c720506549c1aab73ee728208f1b2580a9fd67b92d61ba6b08fe93f6dce68fd771e3af1e59a0afa28dd242dd0940d73b95fedd4e90",
"scripts": {
"analyze": "yarn workspace patternfly-org analyze",
"develop": "yarn workspace patternfly-org develop",
Expand All @@ -24,25 +25,22 @@
},
"workspaces": {
"packages": [
"packages/ast-helpers",
"packages/documentation-framework",
"packages/documentation-site"
"packages/*"
]
},
"devDependencies": {
"@octokit/rest": "^19.0.7",
"@patternfly/patternfly": "^6.1.0-prerelease.11",
"@patternfly/react-code-editor": "^6.1.0-prerelease.14",
"@patternfly/react-core": "^6.1.0-prerelease.14",
"@patternfly/react-table": "^6.1.0-prerelease.14",
"@octokit/rest": "^19.0.7",
"glob": "^8.1.0",
"lerna": "^6.4.1",
"surge": "^0.23.1",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"surge": "^0.23.1"
},
"resolutions": {
"node-sass": ">=6.0.1"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
1 change: 0 additions & 1 deletion packages/documentation-framework/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"version": "6.1.2",
"author": "Red Hat",
"license": "MIT",
"private": false,
"bin": {
"pf-docs-framework": "scripts/cli/cli.js"
},
Expand Down
28 changes: 14 additions & 14 deletions packages/documentation-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,41 @@
"screenshots": "pf-docs-framework screenshots"
},
"dependencies": {
"@patternfly/documentation-framework": "6.0.17",
"@patternfly/chatbot": "2.1.0-prerelease.26",
"@patternfly/design-tokens": "1.13.0",
"@patternfly/documentation-framework": "workspace:*",
"@patternfly/quickstarts": "6.1.0-prerelease.6",
"@patternfly/react-catalog-view-extension": "6.0.0",
"@patternfly/react-component-groups": "6.1.0-prerelease.3",
"@patternfly/react-console": "6.0.0",
"@patternfly/react-docs": "7.1.0-prerelease.23",
"@patternfly/react-log-viewer": "6.1.0-prerelease.1",
"@patternfly/react-topology": "6.1.0-prerelease.3",
"@patternfly/react-user-feedback": "6.0.0",
"@patternfly/react-component-groups": "6.1.0-prerelease.3",
"@patternfly/react-virtualized-extension": "6.0.0",
"@patternfly/quickstarts": "6.1.0-prerelease.6",
"@patternfly/chatbot": "2.1.0-prerelease.26",
"@patternfly/design-tokens": "1.13.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0",
"showdown": "^2.1.0"
},
"devDependencies": {
"@patternfly/patternfly-a11y": "5.0.0",
"classnames": "^2.2.5",
"fs-extra": "^11.1.0",
"glob": "^8.1.0",
"react-jss": "^10.9.2",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"classnames": "^2.2.5",
"victory-bar": "^37.1.1",
"victory-core": "^37.1.1",
"victory-scatter": "^37.1.1",
"victory-pie": "^37.1.1",
"victory-stack": "^37.1.1",
"victory-legend": "^37.1.1",
"victory-line": "^37.1.1",
"victory-group": "^37.1.1",
"victory-voronoi-container": "^37.1.1",
"victory-create-container": "^37.1.1",
"victory-cursor-container": "^37.1.1",
"victory-group": "^37.1.1",
"victory-legend": "^37.1.1",
"victory-line": "^37.1.1",
"victory-pie": "^37.1.1",
"victory-scatter": "^37.1.1",
"victory-stack": "^37.1.1",
"victory-tooltip": "^37.1.1",
"victory-bar": "^37.1.1"
"victory-voronoi-container": "^37.1.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In order to develop with PatternFly, you will need to:

1. [Learn about our design token system](/tokens/about-tokens), which enables you to build interfaces with consistent PatternFly styling, including colors, shadows, spacing, and more.

1. Install a package manager to help you install, update, and configure all necessary PatternFly packages. We recommend [npm](https://nodejs.org/en/download) or [Yarn](https://yarnpkg.com/en/docs/getting-started).
1. Install a package manager to help you install, update, and configure all necessary PatternFly packages. We recommend [npm](https://nodejs.org/en/download) or [Yarn](https://yarnpkg.com/getting-started).

1. Configure your environment to get started with our [React](#develop-with-react) and/or [HTML/CSS](#develop-with-htmlcss) libraries.

Expand Down
Loading

0 comments on commit 0c74603

Please sign in to comment.