-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrates the entire code-base to @openshift-assisted/types
- The commit adds a basic client for AMS, used to retrieve the pull-secret. - CI workflow adjusted in order to pick up automatically the workspaces that are meant to be published to NPM. - Release docs updated as well
- Loading branch information
Showing
257 changed files
with
697 additions
and
10,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,39 @@ | ||
# Release workflow (maintainers only) | ||
# Release workflow | ||
|
||
Releasing a new version involves publishing the following packages to npmjs.com and creating a | ||
Releasing a new version involves publishing packages to the NPM public registry and creating a | ||
container image containing a stand-alone version of the UI app (see | ||
[apps/assisted-ui](https://github.com/openshift-assisted/assisted-installer-ui/tree/master/apps/assisted-ui)): | ||
[apps/assisted-ui](https://github.com/openshift-assisted/assisted-installer-ui/tree/master/apps/assisted-ui)). | ||
The [release.yaml](../.github/workflows/release.yaml) workflow contains the scripts for producing | ||
and publishing the final artifacts. | ||
|
||
## How JS libraries are selected for publishing by the CI | ||
|
||
The library's `package.json` must contain the following section in order to be selected by the CI. | ||
|
||
```json | ||
{ | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} | ||
``` | ||
|
||
## Instructions | ||
|
||
1. Make sure you have been granted the `maintaner` role in the project settings. | ||
2. Create a new branch from `master` and name it following this pattern: | ||
`releases/v<some-semver-string>`. | ||
3. [Draft a new release through GitHub's interface](https://github.com/openshift-assisted/assisted-installer-ui/releases/new). | ||
4. Fill the form with the following details: | ||
1. Tag: `v<some-semver-string>` | ||
2. Target branch: `releases/v<some-semver-string>` (the same as in the previous step). | ||
3. Title: `v<some-semver-string>` (again, the same as in the previous step). | ||
4. Description: Generate the release notes automatically (recommended), or edit the field | ||
manually. | ||
|
||
## List of publicly available artifacts | ||
|
||
- [@openshift-assisted/ui-lib](https://www.npmjs.com/package/@openshift-assisted/ui-lib) | ||
- [@openshift-assisted/types](https://www.npmjs.com/package/@openshift-assisted/types) | ||
- [@openshift-assisted/locales](https://www.npmjs.com/package/@openshift-assisted/locales) | ||
- https://quay.io/repository/edge-infrastructure/assisted-installer-ui?tab=tags | ||
|
||
1. Create a new branch from `master` in this repo, called `release/v<some-semver-string>`. | ||
2. [Draft a new release through GitHub's interface](https://github.com/openshift-assisted/assisted-installer-ui/releases/new). | ||
3. Fill the form with the following details: | ||
1. Tag: `v<some-semver-string>` | ||
2. Target branch: `release/v<some-semver-string>` (same as in step 2 above). | ||
3. Title: `v<some-semver-string>` | ||
4. Description: Generate the release notes automatically (or edit the field manually) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,39 @@ | ||
{ | ||
"name": "@openshift-assisted/types", | ||
"versio": "1.0.0", | ||
"version": "1.0.0", | ||
"packageManager": "[email protected]", | ||
"type": "module", | ||
"exports": { | ||
"./assisted-installer-service": { | ||
"types": "./assisted-installer-service.d.ts" | ||
}, | ||
"./accounts-management-service": { | ||
"types": "./accounts-management-service.d.ts" | ||
"./assisted-installer-service": "./assisted-installer-service.d.ts", | ||
"./accounts-management-service": "./accounts-management-service.d.ts", | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"./assisted-installer-service": [ | ||
"./assisted-installer-service.d.ts" | ||
], | ||
"./accounts-management-service": [ | ||
"./accounts-management-service.d.ts" | ||
] | ||
} | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/openshift-assisted/assisted-installer-ui.git", | ||
"directory": "libs/types" | ||
}, | ||
"files": [ | ||
"accounts-management-service.d.ts", | ||
"assisted-installer-service.d.ts", | ||
"tsconfig.json" | ||
], | ||
"scripts": { | ||
"update-types:assisted-installer-service": "node scripts/update-assisted-installer-service-types.js" | ||
"update-types:assisted-installer-service": "node scripts/update-assisted-installer-service-types.js", | ||
"watch": "yarn run -T toolbox watch --dir=. 'yalc push --changed'" | ||
}, | ||
"devDependencies": { | ||
"@types/js-yaml": "^4.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["*.d.ts"], | ||
"exclude": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"extends": "@tsconfig/recommended" | ||
"compilerOptions": { | ||
"resolveJsonModule": true, | ||
"noEmit": true | ||
}, | ||
"include": ["*.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentCredentials.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/ui-lib/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ui-lib/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.