-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add publishing rc versions of npm packages * chore: bump self-dependencies
- Loading branch information
Showing
12 changed files
with
74 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ jobs: | |
is_latest: ${{ steps.semantic_versioning.outputs.is_latest }} | ||
latest_tag: ${{ steps.semantic_versioning.outputs.latest_tag }} | ||
steps: | ||
- uses: epam/ai-dial-ci/actions/semantic_versioning@1.4.2 | ||
- uses: epam/ai-dial-ci/actions/semantic_versioning@1.5.0 | ||
id: semantic_versioning | ||
|
||
release: | ||
|
@@ -94,14 +94,14 @@ jobs: | |
- calculate_version | ||
- test | ||
steps: | ||
- uses: epam/ai-dial-ci/actions/generate_release_notes@1.4.2 | ||
- uses: epam/ai-dial-ci/actions/generate_release_notes@1.5.0 | ||
with: | ||
latest_tag: ${{ needs.calculate_version.outputs.latest_tag }} | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
lfs: true | ||
token: ${{ secrets.ACTIONS_BOT_TOKEN }} | ||
- uses: epam/ai-dial-ci/actions/node_prepare@1.4.2 | ||
- uses: epam/ai-dial-ci/actions/node_prepare@1.5.0 | ||
with: | ||
node_version: ${{ inputs.node_version }} | ||
clean_install: true | ||
|
@@ -111,7 +111,7 @@ jobs: | |
shell: bash | ||
run: | | ||
npm version ${{ needs.calculate_version.outputs.next_version }} --no-git-tag-version || true # upstream branch may already be updated | ||
- uses: epam/ai-dial-ci/actions/build_docker@1.4.2 | ||
- uses: epam/ai-dial-ci/actions/build_docker@1.5.0 | ||
with: | ||
ghcr_username: ${{ github.actor }} | ||
ghcr_password: ${{ secrets.ACTIONS_BOT_TOKEN }} | ||
|
@@ -129,14 +129,29 @@ jobs: | |
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}:{1}', env.IMAGE_NAME, 'latest') || ''}} | ||
${{ startsWith(github.ref, 'refs/heads/release-') && needs.calculate_version.outputs.is_latest == 'true' && format('{0}/{1}:{2}', 'ghcr.io', env.IMAGE_NAME, 'latest') || ''}} | ||
- name: Publish packages to npmjs | ||
if: ${{ inputs.enable_publish && startsWith(github.ref, 'refs/heads/release-') }} | ||
if: ${{ inputs.enable_publish }} | ||
shell: bash | ||
run: | | ||
#!/bin/bash | ||
npm run build | ||
npm run publish ${{ needs.calculate_version.outputs.is_latest == 'true' && '-- --tag latest' || '' }} | ||
PUBLISH_COMMAND="npm run publish" | ||
ARGS="" | ||
if [ "$IS_DEVELOPMENT_BRANCH" == "true" ]; then | ||
ARGS+=" --development" | ||
fi | ||
if [ "$IS_RELEASE_BRANCH" == "true" ] && [ "$IS_LATEST" == "true" ]; then | ||
ARGS+=" --tag latest" | ||
fi | ||
if [ -n "$ARGS" ]; then | ||
PUBLISH_COMMAND+=" --"$ARGS | ||
fi | ||
$PUBLISH_COMMAND | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- uses: epam/ai-dial-ci/actions/[email protected] | ||
IS_LATEST: ${{ needs.calculate_version.outputs.is_latest == 'true' }} | ||
IS_DEVELOPMENT_BRANCH: ${{ github.ref == 'refs/heads/development' }} | ||
IS_RELEASE_BRANCH: ${{ startsWith(github.ref, 'refs/heads/release-') }} | ||
- uses: epam/ai-dial-ci/actions/[email protected] | ||
with: | ||
tag_version: ${{ needs.calculate_version.outputs.next_version }} | ||
changelog_file: "/tmp/my_changelog" # comes from generate_release_notes step; TODO: beautify | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.