forked from siemens/lint
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 935 Bytes
/
release.yml
File metadata and controls
33 lines (31 loc) · 935 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
name: Release
on:
push:
branches:
- main
- release/*
- next
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # semantic-release needs this
token: ${{ secrets.ELEMENT_BOT_GITHUB_TOKEN }} # Otherwise, branch protection rules are not bypassed.
- uses: actions/setup-node@v6
with:
node-version: 24.x
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Semantic Release
run: npx semantic-release
env:
GIT_AUTHOR_NAME: 'Siemens Element Bot'
GIT_AUTHOR_EMAIL: 'simpl.si@siemens.com'
GIT_COMMITTER_NAME: 'Siemens Element Bot'
GIT_COMMITTER_EMAIL: 'simpl.si@siemens.com'
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_GITHUB_TOKEN }}