Skip to content

Commit ade2149

Browse files
authored
chore: automate release workflows (#321)
1 parent f7ee161 commit ade2149

5 files changed

Lines changed: 36 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release AWS Advanced NodeJS Wrapper
2+
on:
3+
release:
4+
types: published
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- name: "Clone Repository"
14+
uses: actions/checkout@v4
15+
- name: "Set up Node.js"
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20.x"
19+
- name: "Install dependencies"
20+
run: npm install --no-save
21+
- name: "Run eslint - linting"
22+
run: npm run lint
23+
- name: "Check formatting"
24+
run: npm run check
25+
- name: "Run unit tests"
26+
run: npm test
27+
- run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release_draft.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
steps:
2121
- name: "Clone Repository"
2222
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 50
2523
- name: "Set up Node.js"
2624
uses: actions/setup-node@v4
2725
with:
@@ -35,7 +33,9 @@ jobs:
3533
- name: "Run unit tests"
3634
run: npm test
3735
- name: "Package Wrapper"
38-
run: mkdir ./build | npm pack --pack-destination ./build
36+
run: |
37+
mkdir ./build
38+
npm run prepublish
3939
- name: "Set Version Env Variable"
4040
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
4141
- name: "Get Release Details"

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aws-advanced-nodejs-wrapper",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"private": true,
55
"type": "module",
66
"workspaces": [

tests/integration/host/src/test/java/integration/host/TestEnvironmentConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ private static void createTelemetryOtlpContainer(TestEnvironmentConfig env) {
724724
}
725725

726726
private static String getContainerBaseImageName(TestEnvironmentRequest request) {
727-
return "node:21";
727+
return "node:22";
728728
}
729729

730730
private static void configureIamAccess(TestEnvironmentConfig env) {

0 commit comments

Comments
 (0)