Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 2.41 KB

File metadata and controls

72 lines (45 loc) · 2.41 KB

Personal access token for the GitHub registry

Table of contents

Purpose for personal access token

To be able to consume packages from the simatic-ax group, you need to login to the registry.

Create a personal access token on GitHub

To create a personal access token on GitHub, follow this link

It's very important that you check the checkbox write:packages

image

For security reasons, your token should expire after a while (by default it's 30 days). Remember this token. You'll need it for the login in the next step.

Login to Simatic-AX registry

Login via CLI

To login via CLI, you need to enter the following command. You need to replace <your personal access token> with your GitHub-created access token.

apax login --registry https://npm.pkg.github.com/ --password <your personal access token>

Login via AX Code UI (Web or local IDE)

To login to the GitHub registry for Simatic AX within your IDE (Web or local AX Code), follow these steps:

  1. Select the file apax.yml, right-click and select Login to registry

    drawing

  2. Enter the GitHub URL

    drawing

    https://npm.pkg.github.com/
  3. Leave the user name field empty and press Enter

    drawing

  4. Enter your personal access token from GitHub with Ctrl+V

    drawing

Now you're able to install all dependencies to develop your library.

Workspace settings to access the GitHub registry

To access the GitHub registry from your workspace, you need to declare it in the apax.yml.

Please enter the following code into your apax.yml:

registries:
  '@simatic-ax': 'https://npm.pkg.github.com/'