8. Introduction to Functions9. Publish Your Functions

9 - Publishing your Function

This content is also available at learn.palantir.com ↗ and is presented here for accessibility purposes.

📖 Task Introduction

When you’re satisfied with your code, you can commit it to your branch and then publish it with a semantic version tag. Once the subsequent continuous integration (CI) checks ↗ have passed, you’re ready to use the function in your in Ontology-aware applications.

🔨 Task Instructions

  1. Click the Commit button in the top right area of your screen.

  2. Provide a short commit message written according to your organization’s code management practices (e.g., add jmeierPercentUnresolved function).

  3. When there is nothing new to commit in your repository, the Commit button becomes a Tag version. Click Tag version when it becomes visible.

  4. A pop-up window prompts you to tag your commit or branch with a semantic version. We’ll keep things simple and tag the Branch (the default option) and increment by 1 minor version. Click the Minor button and then on the blue Create tag button in the bottom right.

    • This initiates a CI check of your repo.
  5. Although not required, you can monitor the progress of your check by clicking Checks from the repository’s More ▾ dropdown menu in the top center of your screen.

    • You’ll want to review the checks on your tag, so click into the Master dropdown and change the checks selector from Branches to Tags as shown below.

Once your checks finish successfully, move on to the next task. If they fail, review the error messages and adjust your code as instructed.