Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish all modules to npmjs #99

Merged
merged 3 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,22 @@ jobs:
issue-title: 'Release opensearch-cluster-cdk : ${{ steps.get_data.outputs.version }}'
issue-body: "Please approve or deny the release of opensearch-cluster-cdk. **VERSION**: ${{ steps.get_data.outputs.version }} **TAG**: ${{ github.ref_name }} **COMMIT**: ${{ github.sha }}"
exclude-workflow-initiator-as-approver: true
- name: Release
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 16.16.0
registry-url: 'https://registry.npmjs.org'
- name: Build and package
run: |
npm install && npm run build
npm pack
filename=`ls | grep opensearch-project-opensearch-cluster-cdk`
mkdir publish-cluster-cdk && mv $filename publish-cluster-cdk/opensearch-cluster-cdk.tar.gz
tar -cvf artifacts.tar.gz publish-cluster-cdk
- name: Draft a release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
generate_release_notes: true
files: |
artifacts.tar.gz
6 changes: 5 additions & 1 deletion jenkins/release.jenkinsFile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ lib = library(identifier: '[email protected]', retriever: modernSCM([
standardReleasePipelineWithGenericTrigger(
tokenIdCredential: 'jenkins-opensearch-cluster-cdk-generic-webhook-token',
causeString: 'A tag was cut on opensearch-project/opensearch-cluster-cdk repository causing this workflow to run',
downloadReleaseAsset: true,
publishRelease: true) {
publishToNpm(publicationType: 'github')
publishToNpm(
publicationType: 'artifact',
artifactPath: "${WORKSPACE}/publish-cluster-cdk/opensearch-cluster-cdk.tar.gz"
)
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opensearch-project/opensearch-cluster-cdk",
"version": "1.0.0",
"version": "1.0.1",
"bin": {
"cdk_v2": "bin/app.js"
},
Expand Down
Loading