This action generates a temporary authentication token to publish artifacts to packages.atlassian.com
The preferred output modes of the publish token. It supports the following values:
-
maven: Creates the maven settings file (~/.m2/settings.xml) with the credentials for the repository
maven-atlassian-com
-
gradle: Creates the gradle global properties file (~/.gradle/gradle.properties) including the properties:
ARTIFACTORY_USERNAME
andARTIFACTORY_API_KEY
populated with the temporary credentials -
environment: Exports credentials as environment variables:
ARTIFACTORY_USERNAME
andARTIFACTORY_API_KEY
-
output: Default option if not provided, populates the credentials as step output variables:
artifactUsername
andartifactApiToken
The temporary publish username
The temporary publish token
jobs:
# ...
build:
# minimal permissions
permissions:
contents: read
id-token: write
steps:
# ...
- name: Get Artifact Publish Token
id: publish-token
uses: atlassian-labs/[email protected]
with:
output-modes: maven
# ... publish your artifact
- name: Publish artifact
run: mvn release:perform
- The permissions are required in order to access GitHub OIDC Provider.
npm run test
will run the units tests
Commit all your changes and run the following command to bump the version number and publish a new version
npm run release