This repository contains packages that are designed to be reusable across multiple other repositories.
The packages in this repository are detailed further below:
To set your environment up for local development and deployment, follow the guide here
To publish a new version of a package, increase the package's version number in the version field at the top-level
of the package.json
file, and then check this file in to the branch to publish, or merge this file to the branch
to publish (typically the main
branch).
Then, go to the fraud-npm repo in GitLab, select the Actions
tab, and click on the Publish
action in the list on the
left-hand side. Then, click on the Run workflow
button in the upper right-hand corner and, in the resultant dialog,
specify the branch to publish from, and the package to publish, and then click on the Run workflow
button to publish
the package to the One Login package repository.
Tip
packages will normally be published from main after a merge.
To add a new package, do the following:
- add the new package to the top-level of the fraud-npm project;
- add the new package to the publish.yaml workflow action. This action allows the user to choose from a drop-down of packages to publish;
- go to the fraud-npm repo in GitHub, choose your new package from the packages list in the bottom-right of the screen, then choose Package Settings from the bottom-right, and then add all the repositories you would like to be able to access your new package to the list in the "Manage Actions access" section.