Skip to content

Commit e455707

Browse files
committed
build(release): add next-release workflow
1 parent 80a2a4e commit e455707

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Next Release
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
build-and-test:
7+
uses: ./.github/workflows/build-and-test.yaml
8+
secrets:
9+
SIEMENS_NPM_TOKEN: ${{ secrets.SIEMENS_NPM_TOKEN }}
10+
SIEMENS_NPM_USER: ${{ secrets.SIEMENS_NPM_USER }}
11+
12+
publish:
13+
runs-on: ubuntu-24.04
14+
needs:
15+
- build-and-test
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # semantic-release needs this
20+
token: ${{ secrets.ELEMENT_BOT_GITHUB_TOKEN }} # Otherwise, branch protection rules are not bypassed.
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: lts/jod
24+
cache: 'npm'
25+
- uses: actions/download-artifact@v5
26+
with:
27+
name: dist
28+
path: dist
29+
- run: npm ci --prefer-offline --no-audit
30+
- run: 'npx semantic-release -b \'{ name: "main", channel: "next", prerelease: true }\''
31+
env:
32+
GIT_AUTHOR_NAME: 'Siemens Element Bot'
33+
GIT_AUTHOR_EMAIL: 'simpl.si@siemens.com'
34+
GIT_COMMITTER_NAME: 'Siemens Element Bot'
35+
GIT_COMMITTER_EMAIL: 'simpl.si@siemens.com'
36+
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)