Skip to content

Commit

Permalink
chore(deps): update to PF6
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Aug 14, 2024
1 parent 143e486 commit 8cada74
Show file tree
Hide file tree
Showing 14 changed files with 2,534 additions and 1,756 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@v0.3.0
- uses: actions/add-to-project@v1
with:
project-url: https://github.com/orgs/patternfly/projects/12
github-token: ${{ secrets.GH_PROJECTS }}
36 changes: 18 additions & 18 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
GH_PR_NUM: ${{ github.event.number }}
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
if [[ ! -z "${GH_PR_NUM}" ]]; then
echo "Checking out PR"
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
fi
- uses: actions/cache@v2
- uses: actions/cache@v4
id: setup-cache
name: Cache setup
with:
Expand All @@ -29,18 +29,18 @@ jobs:
packages/*/patternfly-docs/content/**
packages/*/patternfly-docs/generated/**
key: ${{ runner.os }}-setup-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/cache@v2
node-version: '20'
- uses: actions/cache@v4
id: yarn-cache
name: Cache npm deps
with:
path: |
node_modules
**/node_modules
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- uses: actions/cache@v2
- uses: actions/cache@v4
id: lint-cache
name: Load lint cache
with:
Expand All @@ -56,15 +56,15 @@ jobs:
GH_PR_NUM: ${{ github.event.number }}
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Yes, we really want to checkout the PR
- run: |
if [[ ! -z "${GH_PR_NUM}" ]]; then
echo "Checking out PR"
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
fi
- uses: actions/cache@v2
- uses: actions/cache@v4
id: setup-cache
name: Cache setup
with:
Expand All @@ -76,10 +76,10 @@ jobs:
packages/*/patternfly-docs/content/**
packages/*/patternfly-docs/generated/**
key: ${{ runner.os }}-setup-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/cache@v2
node-version: '20'
- uses: actions/cache@v4
id: yarn-cache
name: Cache npm deps
with:
Expand All @@ -90,7 +90,7 @@ jobs:
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- uses: actions/cache@v2
- uses: actions/cache@v4
id: dist
name: Cache dist
with:
Expand All @@ -109,15 +109,15 @@ jobs:
GH_PR_NUM: ${{ github.event.number }}
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Yes, we really want to checkout the PR
- run: |
if [[ ! -z "${GH_PR_NUM}" ]]; then
echo "Checking out PR"
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
fi
- uses: actions/cache@v2
- uses: actions/cache@v4
id: setup-cache
name: Cache setup
with:
Expand All @@ -129,10 +129,10 @@ jobs:
packages/*/patternfly-docs/content/**
packages/*/patternfly-docs/generated/**
key: ${{ runner.os }}-setup-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('package.json', 'packages/module/package.json') }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/cache@v2
node-version: '20'
- uses: actions/cache@v4
id: yarn-cache
name: Cache npm deps
with:
Expand All @@ -143,7 +143,7 @@ jobs:
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- uses: actions/cache@v2
- uses: actions/cache@v4
id: dist
name: Cache dist
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
env:
GH_PR_NUM: ${{ github.event.number }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
if [[ ! -z "${GH_PR_NUM}" ]]; then
echo "Checking out PR"
git fetch origin pull/$GH_PR_NUM/head:tmp
git checkout tmp
fi
- uses: actions/cache@v2
- uses: actions/cache@v4
id: setup-cache
name: Cache setup
with:
Expand All @@ -30,10 +30,10 @@ jobs:
run: ./devSetup.sh
shell: bash
if: steps.setup-cache.outputs.cache-hit != 'true'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/cache@v2
node-version: '20'
- uses: actions/cache@v4
id: yarn-cache
name: Cache npm deps
with:
Expand All @@ -43,7 +43,7 @@ jobs:
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- uses: actions/cache@v2
- uses: actions/cache@v4
id: dist
name: Cache dist
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run build script
run: ./devSetup.sh
shell: bash
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '18'
- uses: actions/cache@v2
node-version: '20'
- uses: actions/cache@v4
id: yarn-cache
name: Cache npm deps
with:
Expand All @@ -31,7 +31,7 @@ jobs:
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- uses: actions/cache@v2
- uses: actions/cache@v4
id: dist
name: Cache dist
with:
Expand All @@ -43,4 +43,4 @@ jobs:
run: yarn build
if: steps.dist.outputs.cache-hit != 'true'
- name: Release to NPM
run: cd packages/module && npx semantic-release@19.0.5
run: cd packages/module && npx semantic-release@24
58 changes: 29 additions & 29 deletions .recipes/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,36 @@
"devDependencies": {
"react": "^18",
"react-dom": "^18",
"typescript": "^5.2.2",
"@types/jest": "^29.5.6",
"typescript": "^5.5.4",
"@types/jest": "^29.5.12",
"@types/react": "^18",
"@types/react-dom": "^18",
"concurrently": "^5.3.0",
"eslint": "^8.0.1",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-markdown": "^1.0.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.4",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-config-prettier": "8.5.0",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"prettier": "2.7.1",
"jest": "^29.2.2",
"babel-jest": "^29.2.2",
"@babel/core": "^7.19.6",
"@babel/preset-env": "^7.19.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-flow": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.5.1",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/dom": "^9.3.3",
"jest-environment-jsdom": "^29.2.2",
"serve": "^14.1.2"
"concurrently": "^8.2.2",
"eslint": "^8.57.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-config-love": "^62.0.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-config-prettier": "9.1.0",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"prettier": "3.3.3",
"jest": "^29.7.0",
"babel-jest": "^29.7.0",
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@babel/preset-flow": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/dom": "^10.4.0",
"jest-environment-jsdom": "^29.7.0",
"serve": "^14.2.3"
}
}
16 changes: 8 additions & 8 deletions .recipes/default/packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@
"access": "public"
},
"dependencies": {
"@patternfly/react-core": "^5.1.1"
"@patternfly/react-core": "6.0.0-alpha.94"
},
"peerDependencies": {
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@patternfly/documentation-framework": "^5.2.20",
"@patternfly/patternfly": "^5.1.0",
"@patternfly/react-table": "^5.1.1",
"@patternfly/react-code-editor": "^5.1.1",
"rimraf": "^2.6.2",
"@patternfly/documentation-framework": "6.0.0-alpha.77",
"@patternfly/patternfly": "6.0.0-alpha.205",
"@patternfly/react-table": "6.0.0-alpha.95",
"@patternfly/react-code-editor": "6.0.0-alpha.94",
"rimraf": "^6.0.1",
"@patternfly/patternfly-a11y": "^4.3.1",
"react-monaco-editor": "^0.51.0",
"monaco-editor": "^0.34.1",
"react-monaco-editor": "^0.56.0",
"monaco-editor": "^0.50.0",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
import { AutoLinkHeader, Example } from '@patternfly/documentation-framework/components';
import { ExtendedButton } from "{{ tmplr.npm_scope }}/{{ tmplr.extension_name | kebab-case }}";
const pageData = {
"id": "{{ tmplr.extension_name }}",
Expand Down
Loading

0 comments on commit 8cada74

Please sign in to comment.