Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 42a81a7

Browse files
author
ElRaptorus
committed
fix workflow
1 parent 9d7d109 commit 42a81a7

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ on:
77
- '*/*'
88

99
env:
10-
CI_TOOLS_VERSION: '^4.2.0'
10+
CI_TOOLS_VERSION: '^5.0.0'
1111
# NOTE: Um den Releasezyklus von Alpha nach Beta zu ändern, einfach die nachfolgend deklarierten Env Variablen switchen.
1212
CI_TOOLS_ALPHA_BRANCH: next
1313
CI_TOOLS_ALPHA_NPM_TAG: next
14-
CI_TOOLS_STABLE_BRANCH: main
1514
# CI_TOOLS_BETA_BRANCH: next
1615
# CI_TOOLS_BETA_NPM_TAG: next
17-
#BOX_RELEASE_TAG: 2024-1
16+
BOX_RELEASE_TAG: 2025-1
1817

1918
jobs:
2019
build_and_publish:
@@ -28,10 +27,10 @@ jobs:
2827
fetch-depth: 0
2928
token: ${{ secrets.GH_TOKEN }}
3029

31-
- name: Use Node.js 20
30+
- name: Use Node.js 22
3231
uses: actions/setup-node@v4
3332
with:
34-
node-version: '20'
33+
node-version: '22'
3534
registry-url: 'https://registry.npmjs.org'
3635

3736
- name: Install CI Tools
@@ -63,10 +62,11 @@ jobs:
6362
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6463
run: ci_tools publish-npm-package --create-tag-from-branch-name
6564

66-
# - name: Add Box-Release Tag
67-
# if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
68-
# env:
69-
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
70-
# run: |
71-
# VERSION="$(ci_tools get-version)"
72-
# npm dist-tag add @5minds/processcube_app_sdk@$VERSION ${{ env.BOX_RELEASE_TAG }}
65+
- name: Add Box-Release Tag
66+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
67+
env:
68+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
69+
run: |
70+
VERSION="$(ci_tools get-version)"
71+
PACKAGE_NAME="$(npm pkg get name | tr -d \")"
72+
npm dist-tag add $PACKAGE_NAME@$VERSION ${{ env.BOX_RELEASE_TAG }}

0 commit comments

Comments
 (0)