Skip to content

Commit 52b6afb

Browse files
authored
fix: use annotated tags for packages (#3649)
1 parent f29e23e commit 52b6afb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/cd-packages.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- uses: actions/checkout@v5
2323
with:
2424
token: ${{ secrets.GH_GITBOOK_TOKEN }}
25+
- name: Setup git identity
26+
run: |
27+
git config --global user.name "github-actions[bot]"
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2529
- uses: actions/setup-node@v4
2630
with:
2731
node-version-file: .nvmrc

.github/workflows/cd-python-sdk.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- uses: actions/checkout@v5
1919
with:
2020
token: ${{ secrets.GH_GITBOOK_TOKEN }}
21+
- name: Setup git identity
22+
run: |
23+
git config --global user.name "github-actions[bot]"
24+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
2125
- uses: actions/setup-node@v4
2226
with:
2327
node-version-file: .nvmrc
@@ -57,4 +61,4 @@ jobs:
5761
exit 0
5862
fi
5963
git tag -a "$TAG" -m "Python SDK $VERSION"
60-
git push origin "$TAG"
64+
git push origin --tags

scripts/tag-published-packages.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function maybeCreateGitTagForPackage({ name, version }) {
1515
childProcess.execSync(`git rev-parse --verify ${tag}`, { stdio: "ignore" });
1616
console.warn(`Git tag already exists, skipping: ${tag}`);
1717
} catch {
18-
childProcess.execSync(`git tag ${tag}`);
18+
childProcess.execSync(`git tag -a "${tag}" -m "Released JS package: @human-protocol/${name} - ${version}"`);
1919
console.log(`Created tag: ${tag}`);
2020
}
2121
}

0 commit comments

Comments
 (0)