Skip to content

Commit 4a7c416

Browse files
committed
fix ci
1 parent 7e2108f commit 4a7c416

File tree

6 files changed

+127
-104
lines changed

6 files changed

+127
-104
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ jobs:
2727
continue-on-error: true
2828
run:
2929
npm ci &&
30-
npm run build &&
31-
npm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
npm run build
3431
- name: Configure AWS Credentials
3532
uses: aws-actions/configure-aws-credentials@v1
3633
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55

66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
77

8+
## [Unreleased]
9+
10+
* fix ci
11+
812
## [0.3.8] - 2024-03-04
913

1014
* Uses @baselime/node-opentelemetry as core

e2e/serverless/serverless.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ provider:
2626
Action: 'events:PutEvents'
2727
Resource: '*'
2828
tags:
29-
'baselime:tracing': true
29+
'baselime:tracing': auto
3030
environment:
3131
AWS_SDK_INTERNALS: false
3232
BASELIME_REQUEST_CAPTURE: true
33+
API_URL: !GetAtt HttpApi.ApiEndpoint
3334
functions:
3435
hello:
3536
handler: src/main.handler

e2e/serverless/src/main.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const tiny = require("tiny-json-http");
1+
const { post, get } = require("tiny-json-http");
22
const { context, trace, } = require("@opentelemetry/api");
33

44
const { flattenObject } = require("./utils");
@@ -35,16 +35,20 @@ function trackAll(name, lib) {
3535
}
3636

3737
exports.handler = async (e, context) => {
38-
const { body: customer } = await tiny.get({
38+
const { body: customer } = await get({
3939
url: `${process.env.API_URL}/hello`,
4040
});
4141

42-
await tiny.get({ url: 'https://react-rum.vercel.app/' });
42+
// await tiny.get({ url: 'https://react-rum.vercel.app/' });
4343

44-
await tiny.post({
44+
await post({
4545
url: "https://jsonplaceholder.typicode.com/posts",
46-
data: customer,
46+
data: {
47+
name: 'John Doe',
48+
age: 25,
49+
50+
},
4751
});
4852

49-
return customer;
53+
5054
};

0 commit comments

Comments
 (0)