Skip to content
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
56 changes: 56 additions & 0 deletions .github/workflows/cli-installer-release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CLI Installer Release Drafter

on:
push:
tags:
- "cli-installer-v*"

jobs:
draft-a-release:
runs-on: ubuntu-latest
timeout-minutes: 1440
permissions:
id-token: write
contents: write
issues: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- id: get_approvers
run: |
echo "approvers=$(cat .github/CODEOWNERS | grep @ | tr -d '* ' | sed 's/@/,/g' | sed 's/,//1')" >> $GITHUB_OUTPUT

- uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: ${{ steps.get_approvers.outputs.approvers }}
minimum-approvals: 2
issue-title: 'Release cli-installer ${{ github.ref_name }}'
issue-body: "Please approve or deny the release of cli-installer. **Tag**: ${{ github.ref_name }} **Commit**: ${{ github.sha }}"
exclude-workflow-initiator-as-approver: false

- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
working-directory: aws/cli-installer
run: npm ci

- name: Run unit tests
working-directory: aws/cli-installer
run: node --test test/unit.test.mjs

- name: Publish to npm
working-directory: aws/cli-installer
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Draft a release
uses: softprops/action-gh-release@v1
with:
draft: false
generate_release_notes: true
2 changes: 1 addition & 1 deletion .github/workflows/cli-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '24'
- name: Install dependencies
working-directory: aws/cli-installer
run: npm ci
Expand Down
4 changes: 3 additions & 1 deletion aws/cli-installer/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env
.claude
node_modules
.kiro
node_modules
*.bak
test
10 changes: 5 additions & 5 deletions aws/cli-installer/package-lock.json

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

16 changes: 13 additions & 3 deletions aws/cli-installer/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
{
"name": "@opensearch-project/observability-stack-aws-cli",
"version": "0.0.2",
"name": "@opensearch-project/observability-stack",
"version": "0.1.0",
"description": "CLI for the Observability Stack",
"type": "module",
"bin": "./bin/cli-installer.mjs",
"scripts": {
"start": "node bin/open-stack.mjs"
"start": "node bin/open-stack.mjs",
"test": "node --test test/unit.test.mjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/opensearch-project/observability-stack.git"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/opensearch-project/observability-stack/issues"
},
"homepage": "https://github.com/opensearch-project/observability-stack/tree/main/aws/cli-installer",
"dependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
"@aws-sdk/client-amp": "^3.750.0",
Expand Down
Loading