forked from opensearch-project/observability-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.05 KB
/
Copy pathrelease-drafter.yml
File metadata and controls
42 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release Workflow
on:
push:
tags:
- "cli-installer-v*"
jobs:
release-to-npm:
environment: release-approval
runs-on: ubuntu-latest
timeout-minutes: 1440
permissions:
id-token: write
contents: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- name: Install dependencies
working-directory: aws/cli-installer
run: npm ci
- name: Run unit tests
working-directory: aws/cli-installer
run: npm run test
- name: Publish to npm
working-directory: aws/cli-installer
run: npm publish
- name: Release on Github
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2
with:
draft: false
generate_release_notes: true