-
Notifications
You must be signed in to change notification settings - Fork 44
36 lines (31 loc) · 997 Bytes
/
release-ecs-helpers.yml
File metadata and controls
36 lines (31 loc) · 997 Bytes
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
# Release a tagged version of the '@elastic/ecs-helpers' package.
name: release-ecs-helpers
on:
push:
tags:
- ecs-helpers-v*.*.*
# 'id-token' perm needed for npm publishing with provenance (see
# https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow)
permissions:
contents: write
pull-requests: read
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./.github/actions/npm-publish
with:
node-version: 'v18.20.2'
npm-token: 'ecs-helpers'
package: ${{ matrix.package }}
- name: Notify in Slack
if: ${{ failure() }}
uses: elastic/oblt-actions/slack/notify-result@v1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-agent-node"
message: '[${{ github.repository }}] Release `@elastic/ecs-helpers` *${{ github.ref_name }}*'