Skip to content

Commit

Permalink
Merge pull request #7 from sebastian-meckovski/pipeline-fix
Browse files Browse the repository at this point in the history
pipeline fix
  • Loading branch information
sebastian-meckovski authored Sep 3, 2024
2 parents 3ea45aa + 9e43a3c commit 1b4f743
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ jobs:
PR_URL=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.html_url')
TITLE=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.title')
# Add version, description, author, PR URL, and title to CHANGELOG.md
echo "$FIRST_MERGE_REQUEST"
echo "$DESCRIPTION"
echo "$AUTHOR"
echo "$PR_URL"
echo "$TITLE"
sed -i "2i ## ${PACKAGE_VERSION} (${VAR_TIME})\n- Description: ${DESCRIPTION}\n- Author: ${AUTHOR}\n- Pull request URL: ${PR_URL}\n- Title: ${TITLE}\n" CHANGELOG.md
git status
- name: Configure Git
run: |
git config user.email "[email protected]"
Expand All @@ -51,3 +58,14 @@ jobs:
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
npm run build
npm publish
# AUTHOR=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.user.login')
# TARGET_BRANCH=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.base.ref')
# PR_URL=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.html_url')
# TITLE=$(echo "$FIRST_MERGE_REQUEST" | jq -r '.title')

# sed -i "2i - Author: ${AUTHOR}" CHANGELOG.md
# sed -i "2i - Pull request URL: ${PR_URL}" CHANGELOG.md
# sed -i "2i - Target branch: ${TARGET_BRANCH}" CHANGELOG.md
# sed -i "2i - Title: ${TITLE}" CHANGELOG.md

0 comments on commit 1b4f743

Please sign in to comment.