Skip to content
Open
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
34 changes: 20 additions & 14 deletions .github/workflows/a11y.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
name: A11y CI

name: A11Y CI
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
a11y:
name: A11y testing
name: A11y Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
- name: Check out project
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install
run: yarn install
- name: Build
node-version: 20
check-latest: true

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Run build
run: yarn build
- name: Start server and run a11y tests
run: npx start-server-and-test start http://localhost:3000 test:a11y

- name: Start server and run A11Y tests
run: yarn start-server-and-test start http://localhost:3000 test:a11y
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ci:
runs-on: ubuntu-latest
name: Build, lint and test
steps:
- name: Check out project
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Run build
run: yarn build

- name: Run linter
run: yarn lint

- name: Run tests
run: yarn test
29 changes: 0 additions & 29 deletions .github/workflows/node.js.yml

This file was deleted.

38 changes: 26 additions & 12 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
name: promote
name: Promote
on:
push:
# Sequence of patterns matched against refs/tags
tags:
tags:
- v5.*
jobs:
build-and-promote:
promote:
name: Promote to latest
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_LEGACY_PEER_DEPS: true
steps:
- uses: actions/checkout@v2
- name: Build for promotion
run: yarn install --frozen-lockfile && yarn build
- uses: actions/setup-node@v3
- name: Check out project
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: GitHub Tag Name example
node-version: 20
check-latest: true
registry-url: https://registry.npmjs.org

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Run build
run: yarn build

- name: Print tag name
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Manual publish

- name: Publish package
run: |
cd packages/module
npm version ${{ github.ref_name }} --git-tag-version false
npm publish --tag=latest
npm publish --tag=latest
40 changes: 16 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,23 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_LEGACY_PEER_DEPS: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Check out project
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v2
id: yarn-cache
name: Cache npm deps
with:
path: |
node_modules
**/node_modules
~/.cache/Cypress
key: ${{ runner.os }}-yarn-16-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
- uses: actions/cache@v2
id: dist
name: Cache dist
with:
path: |
packages/*/dist
packages/react-styles/css
key: ${{ runner.os }}-dist-16-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock', 'package.json', 'packages/*/*', '!packages/*/dist', '!packages/*/node_modules') }}
- name: Build dist
node-version: 20
check-latest: true

- name: Enable Corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

- name: Run build
run: yarn build
if: steps.dist.outputs.cache-hit != 'true'

- name: Release to NPM
run: cd packages/module && npx semantic-release@19.0.5 --legacy-peer-deps
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
**/node_modules
dist
yarn-error.log
stats.json
coverage
storybook-static
Expand All @@ -10,3 +9,12 @@ storybook-static
stats.html

.cache

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "This library provides the quickstarts module",
"license": "MIT",
"private": true,
"packageManager": "yarn@4.3.1+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774",
"engines": {
"node": ">=20"
},
"workspaces": [
"packages/dev",
"packages/module",
Expand Down Expand Up @@ -115,8 +119,5 @@
"!**/node_modules/**"
],
"resolver": "./jest-resolver.js"
},
"engines": {
"node": ">=18.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"dependencies": {
"@patternfly/patternfly": "^5.2.1",
"@patternfly/quickstarts": "*",
"@patternfly/transform-adoc": "*",
"@patternfly/react-core": "^5.2.1",
"@patternfly/transform-adoc": "*",
"asciidoctor": "^2.2.6",
"i18next": "^19.8.3",
"i18next-browser-languagedetector": "^6.0.1",
"i18next-parser": "^8.9.0",
"i18next-pseudo": "^2.2.0",
"lodash-es": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-i18next": "^11.7.3",
"react-router-dom": "^6.11.2",
"showdown": "2.1.0",
"lodash-es": "^4.17.21"
"showdown": "2.1.0"
},
"devDependencies": {
"@types/react": "^18.2.6",
Expand Down
8 changes: 4 additions & 4 deletions packages/module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@
"devDependencies": {
"@patternfly/documentation-framework": "^5.0.15",
"@patternfly/patternfly": "^5.0.0",
"@patternfly/react-code-editor": "^5.0.0",
"@patternfly/react-core": "^5.0.0",
"@patternfly/react-icons": "^5.0.0",
"@patternfly/react-styles": "^5.0.0",
"@patternfly/react-tokens": "^5.0.0",
"@patternfly/react-table": "^5.0.0",
"@patternfly/react-code-editor": "^5.0.0",
"react-monaco-editor": "0.51.0",
"monaco-editor": "0.34.1",
"@patternfly/react-tokens": "^5.0.0",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^11.1.0",
Expand All @@ -83,13 +81,15 @@
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.15.5",
"enzyme-to-json": "^3.6.1",
"monaco-editor": "0.34.1",
"node-sass-glob-importer": "^5.3.2",
"prettier": "^2.8.8",
"purgecss": "^4.0.0",
"react": "^18.2.0",
"react-axe": "^3.5.4",
"react-docgen-typescript-loader": "^3.7.2",
"react-dom": "^18.2.0",
"react-monaco-editor": "0.51.0",
"regenerator-runtime": "^0.13.7",
"rimraf": "^3.0.2",
"rollup": "^2.37.0",
Expand Down
Loading