Skip to content

Commit 6ebb505

Browse files
authored
update auslagerung
1 parent c346ecf commit 6ebb505

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

.github/workflows/npm-release.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,35 +33,14 @@ jobs:
3333
env:
3434
skipDeployment: false
3535
steps:
36-
- name: Checkout repository
37-
uses: actions/checkout@v4
38-
39-
- name: Set up Node.js
40-
uses: actions/setup-node@v4
36+
- name: NPM Release
37+
id: npm_release
38+
uses: it-at-m/.github/.github/actions/action-create-npm-release@84-npm-docker-image-release
4139
with:
42-
node-version: "22"
40+
app-path: ${{inputs.app-path}}
41+
releaseVersion: ${{inputs.releaseVersion}}
4342

44-
45-
- id: node-release
46-
name: Bump version and create git tag
47-
working-directory: ./${{inputs.app-path}}
48-
run: |
49-
NEW_VERSION=$(npm version ${{inputs.releaseVersion}}) || exit 1
50-
echo "VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT"
51-
git config --global user.email "[email protected]"
52-
git config --global user.name "GitHub Actions"
53-
git add package.json package-lock.json
54-
git commit -m "Bump version to ${NEW_VERSION}" || exit 1
55-
git tag "${NEW_VERSION}" || exit 1
56-
git push && git push --tags || exit 1
57-
- id: node
58-
uses: it-at-m/.github/.github/actions/action-npm-build@main
59-
with:
60-
app-path: "${{ inputs.app-path }}"
61-
- if: "${{ !env.skipDeployment }}"
62-
run: npm publish # publish
63-
env:
64-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # in der GitHub it-at-m Orga zentral hinterlegter Token
43+
6544
build-image:
6645
runs-on: ubuntu-latest
6746
needs: release

0 commit comments

Comments
 (0)