Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
8b4315a
chore(release): 1.0.4
Jul 24, 2025
40a7a83
Merge branch 'main' of https://github.com/devflow-modules/jwt-auth
Jul 24, 2025
178ca1c
Merge branch 'main' of https://github.com/devflow-modules/jwt-auth
Jul 24, 2025
35b7536
fix(release-publish): corrige push usando token no workflow para evit…
Jul 24, 2025
a5af92b
ci(release): automatiza versionamento, changelog e publicação no npm …
Jul 24, 2025
46923c6
Merge branch 'main' into fix/release-publish-npm-token
gustavomarques00 Jul 24, 2025
22161e6
fix(ci): corrige push no workflow de release usando token correto par…
Jul 24, 2025
ce7d4cd
Merge branch 'main' into fix/release-publish-npm-token
gustavomarques00 Jul 24, 2025
5e7beb0
fix(release): corrigir push no workflow com token npm
Jul 24, 2025
8a8228f
Merge branch 'main' into fix/release-publish-npm-token
gustavomarques00 Jul 24, 2025
e30f344
ci: add release create PR and publish workflows
Jul 24, 2025
5d8fd6c
Merge branch 'fix/release-publish-npm-token' of https://github.com/de…
Jul 24, 2025
1083a40
refactor: separar workflows em ci, release-create-pr e release-publis…
Jul 24, 2025
0946d85
Merge branch 'main' into fix/release-publish-npm-token
gustavomarques00 Jul 24, 2025
fe23a5d
fix(ci): desabilitar verificação GPG no upload para Codecov
Jul 24, 2025
2def245
Merge branch 'fix/release-publish-npm-token' of https://github.com/de…
Jul 24, 2025
0036764
fix(release): corrigir token npm para publicação e separar workflows …
Jul 24, 2025
d262016
Merge branch 'main' into fix/release-publish-npm-token
gustavomarques00 Jul 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 21 additions & 14 deletions .github/workflows/release-create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Configure git user for commit
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Run standard-version (bump version and changelog)
run: npx standard-version

- name: Get new version tag
id: get_version
run: echo "tag=$(node -p \"require('./package.json').version\")" >> $GITHUB_OUTPUT

- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Create release branch and push
env:
GITHUB_PAT: ${{ secrets.TOKEN_GITHUB }}
Expand All @@ -43,15 +43,22 @@ jobs:
git checkout -b $RELEASE_BRANCH
git push origin $RELEASE_BRANCH

- name: Create Pull Request
- name: Create Pull Request via API
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
RELEASE_BRANCH: release/v${{ steps.get_version.outputs.tag }}
run: |
sudo apt-get update
sudo apt-get install -y gh
echo "${GITHUB_TOKEN}" | gh auth login --with-token
gh pr create --title "Release v${{ steps.get_version.outputs.tag }}" \
--body "Release automática da versão v${{ steps.get_version.outputs.tag }}" \
--base main --head $RELEASE_BRANCH \
--reviewer gustavomarques00 \
--assignee gustavomarques00
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/pulls \
-d @- <<EOF
{
"title": "Release v${{ steps.get_version.outputs.tag }}",
"head": "$RELEASE_BRANCH",
"base": "main",
"body": "Release automática da versão v${{ steps.get_version.outputs.tag }}",
"reviewers": ["gustavomarques00"],
"assignees": ["gustavomarques00"]
}
EOF
4 changes: 2 additions & 2 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Configure git for pushing tags
- name: Configure git user for commit
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -38,7 +38,7 @@ jobs:
GITHUB_PAT: ${{ secrets.TOKEN_GITHUB }}
run: |
git push https://x-access-token:${GITHUB_PAT}@github.com/${{ github.repository }} main --follow-tags

- name: Publish package to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down