69
69
uses : simatic-ax/actions/apax-publish@v3
70
70
with :
71
71
registries : |
72
- https://npm.pkg.github.com
73
-
74
- # [Optional]: The following steps are not mandatory and are highly depending on your release workflow
75
- # - name: Update Changelog and Create PR
76
- # env:
77
- # GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }} # Hier das neue PAT
78
- # RELEASE_BODY: ${{ github.event.release.body }}
79
- # RELEASE_TAG: ${{ github.event.release.tag_name }}
80
- # RELEASE_DATE: ${{ github.event.release.published_at }}
81
- # TARGET_BRANCH: ${{ github.event.release.target_commitish }}
82
- # run: |
83
- # chmod +x .github/workflows/update-changelog-pr.sh
84
- # .github/workflows/update-changelog-pr.sh
85
-
86
- - name : Update major version tag
87
- if : ${{ success() }}
88
- run : |
89
- git config --global --add safe.directory "$GITHUB_WORKSPACE"
90
- git config user.name "github-actions[bot]"
91
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
92
-
93
- VERSION=${{ github.event.release.tag_name }}
94
- if echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
95
- MAJOR_VERSION="v$(echo $VERSION | cut -d. -f1)"
96
- echo "Updating major version tag: $MAJOR_VERSION"
97
- git push origin :refs/tags/$MAJOR_VERSION || true
98
- git tag -f $MAJOR_VERSION
99
- git push origin $MAJOR_VERSION --force
100
- echo "✅ Major version tag updated successfully"
101
- else
102
- echo "❌ Error: Invalid version format: '$VERSION'"
103
- echo "Expected format: X.Y.Z (e.g., 1.2.3)"
104
- exit 1
105
- fi
72
+ https://npm.pkg.github.com
0 commit comments