-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.37 KB
/
main.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
push:
branches:
- '*'
- '*/*'
env:
CI_TOOLS_VERSION: '^4.2.0'
# NOTE: Um den Releasezyklus von Alpha nach Beta zu ändern, einfach die nachfolgend deklarierten Env Variablen switchen.
CI_TOOLS_ALPHA_BRANCH: next
CI_TOOLS_ALPHA_NPM_TAG: next
CI_TOOLS_STABLE_BRANCH: main
# CI_TOOLS_BETA_BRANCH: next
# CI_TOOLS_BETA_NPM_TAG: next
#BOX_RELEASE_TAG: 2024-1
jobs:
build_version:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install CI Tools
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm i -g @5minds/product_ci_tools@${{ env.CI_TOOLS_VERSION }}
- name: 'Prepare Version'
if: "!startsWith(github.ref_name, 'renovate')"
run: ci_tools prepare-version --allow-dirty-workdir
- name: Commit & Tag Version
run: |
ci_tools commit-and-tag-version --only-on-primary-branches
ci_tools update-github-release --only-on-primary-branches --use-title-and-text-from-git-tag
env:
GH_USER: ${{ secrets.GH_USER }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}