To be able to consume some packages from the simatic-ax
group, you need to login into the registry.
To create an personal access on GitHub token follow this link)
It's very important that you check the checkbox
write:packages
For security reasons, your token should be expire after wa while (by default it's 30 days) Remember this token. You'll need it for the login in the next step
To login via CLI you've to enter the following command. You've to replace <your personal access token>
by your on Github created access token.
apax login --registry https://npm.pkg.github.com/ --password <your personal access token>
To login into the GitHub registry for Simatic AX within your IDE (Web or local AX Code) follow this steps:
-
select the file
apax.yml
, click the right mouse button and selectLogin to registry
-
Enter the GitHub URL
https://npm.pkg.github.com/
-
Leave the user name field empty and press
Enter
-
Enter your personal access token from GitHub with
Strg+V
Now you're able to install all dependencies to develop on your library.
To access the GitHub registry from your workspace, you've to announce it in the apax.yml.
Please enter the following code into your apax.yml:
registries:
'@simatic-ax': 'https://npm.pkg.github.com/'