Skip to content

Commit 087b077

Browse files
authored
release 4.14.0; switch to trusted publishing (#4794)
Refs: #4793
1 parent 7d3c852 commit 087b077

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
permissions:
1111
attestations: write
1212
contents: write
13-
id-token: write
13+
id-token: write # required for OIDC and provenance (npm publish)
1414
pull-requests: read
1515

1616
jobs:
@@ -25,7 +25,8 @@ jobs:
2525

2626
- uses: actions/setup-node@v5
2727
with:
28-
node-version: 'v16.20.2'
28+
# Require npm 11.5.1 or later for https://docs.npmjs.com/trusted-publishers.
29+
node-version: 'v24.8.0'
2930

3031
# Setup a Docker "buildx" builder container, used by "build-push-action"
3132
# below for multi-platform image builds. Notes on multi-platform images:
@@ -133,9 +134,8 @@ jobs:
133134

134135
- name: npm publish (only for tag release)
135136
if: startsWith(github.ref, 'refs/tags')
136-
run: |-
137-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
138-
npm publish --provenance
137+
# https://docs.npmjs.com/trusted-publishers
138+
run: npm publish
139139

140140
- if: ${{ always() && startsWith(github.ref, 'refs/tags') }}
141141
uses: elastic/oblt-actions/slack/notify-result@v1

docs/release-notes/breaking-changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ To learn how to upgrade, check out [Upgrading](/reference/upgrading.md).
2323
% **Action**<br> Steps for mitigating deprecation impact.
2424
% ::::
2525

26-
## Next version [next-version]
27-
**Release date:** REPLACEME Month day, year
26+
## 4.14.0 [4-14-0]
27+
**Release date:** Sep 25, 2025
2828

2929
::::{dropdown} Drop support for directly instrumenting Next.js
3030
Direct instrumentation of the `next` npm package has been removed.

docs/release-notes/index.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,27 @@ To check for security updates, go to [Security announcements for the Elastic sta
2121

2222
% ## Next [next]
2323
% **Release date:** Month day, year
24-
24+
%
2525
% ### Features and enhancements [next-features-enhancements]
26-
26+
%
2727
% ### Fixes [next-fixes]
2828

29+
## 4.14.0 [4-14-0]
30+
**Release date:** Sep 25, 2025
31+
32+
(See [breaking changes](./breaking-changes.md) in this release.)
33+
34+
### Fixes [4-14-0-fixes]
35+
36+
* Mark the published AWS Lambda layers as supporting the "nodejs22.x" Lambda Runtime (`--compatible-runtimes`). The "nodejs22.x" runtime was released by AWS on 2024-11-21. ([#4795](https://github.com/elastic/apm-agent-nodejs/pull/4795))
37+
38+
Note that this Node.js APM agent supports Node.js 22.x, so the new AWS Lambda runtime was supported when it was released. However, the metadata stating compatible runtimes (which is advisory) was not updated until now.
39+
40+
### Chores [4-14-0-chores]
41+
42+
* Switch to trusted publishing (https://docs.npmjs.com/trusted-publishers) as a security precaution against supply-chain attacks. ([#4793](https://github.com/elastic/apm-agent-nodejs/pull/4793))
43+
44+
2945
## 4.13.0 [4-13-0]
3046
**Release date:** May 6, 2025
3147

@@ -36,7 +52,7 @@ To check for security updates, go to [Security announcements for the Elastic sta
3652
## 4.12.0 [4-12-0]
3753
**Release date:** April 24, 2025
3854

39-
### Features and enhancements [4-12-0-next-features-enhancements]
55+
### Features and enhancements [4-12-0-features-enhancements]
4056

4157
* Get sourcemap handling for captured exceptions to work with stack frames in
4258
ES Modules (ESM). Before this, sourcemap handling would only work for stack

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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"name": "elastic-apm-node",
3-
"version": "4.13.0",
3+
"version": "4.14.0",
44
"description": "The official Elastic APM agent for Node.js",
5+
"publishConfig": {
6+
"access": "public",
7+
"provenance": true
8+
},
59
"type": "commonjs",
610
"main": "index.js",
711
"types": "index.d.ts",

0 commit comments

Comments
 (0)