ci: Update publishing mechanism for npmjs #745
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request updates the ATS publishing workflow to separate the packaging and publishing steps for both the contracts and SDK packages. It introduces new jobs for preparing and uploading package artifacts, and adds a dedicated job for publishing these artifacts to npm. Additionally, it updates package metadata and changelogs to reflect these workflow changes and the new version.
Workflow and Publishing Improvements:
.github/workflows/ats.publish.ymlworkflow to split the publishing process into three jobs:prepare-contracts,prepare-sdk, andpublish-npm-packages. The new structure builds, packages, and uploads artifacts before a final job publishes them to npm, improving reliability and enabling provenance publishing for non-production releases. [1] [2] [3] [4]actions/upload-artifactandactions/download-artifactto pass built package files between jobs, ensuring only validated artifacts are published. [1] [2]Package Metadata and Versioning:
@hashgraph/asset-tokenization-contracts,@hashgraph/asset-tokenization-sdk, and@hashgraph/asset-tokenization-dappto1.17.1and updated theirpackage.jsonfiles to include the repository URL. [1] [2] [3]Type of change
Testing
Dry run publish ✅