Skip to content

Commit 1a010aa

Browse files
committed
Prepare 6.12.2 release
1 parent 5b5335e commit 1a010aa

3 files changed

Lines changed: 41 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
permissions:
7-
contents: read
7+
contents: write
88
id-token: write
99

1010
jobs:
@@ -31,14 +31,43 @@ jobs:
3131
run: npm run typecheck
3232

3333
- name: Verify package is unpublished
34+
id: package
3435
run: |
3536
PACKAGE_NAME=$(node -p "require('./package.json').name")
3637
PACKAGE_VERSION=$(node -p "require('./package.json').version")
38+
TAG_NAME="v${PACKAGE_VERSION}"
39+
40+
echo "name=${PACKAGE_NAME}" >> "$GITHUB_OUTPUT"
41+
echo "version=${PACKAGE_VERSION}" >> "$GITHUB_OUTPUT"
42+
echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT"
3743
3844
if npm view "${PACKAGE_NAME}@${PACKAGE_VERSION}" version >/dev/null 2>&1; then
3945
echo "${PACKAGE_NAME}@${PACKAGE_VERSION} is already published"
4046
exit 1
4147
fi
4248
49+
if git ls-remote --exit-code --tags origin "refs/tags/${TAG_NAME}" >/dev/null 2>&1; then
50+
echo "${TAG_NAME} already exists"
51+
exit 1
52+
fi
53+
4354
- name: Publish
44-
run: npm publish
55+
run: npm publish --provenance
56+
57+
- name: Create GitHub release
58+
env:
59+
GH_TOKEN: ${{ github.token }}
60+
PACKAGE_NAME: ${{ steps.package.outputs.name }}
61+
PACKAGE_VERSION: ${{ steps.package.outputs.version }}
62+
TAG_NAME: ${{ steps.package.outputs.tag }}
63+
run: |
64+
awk "/^## v${PACKAGE_VERSION}$/{flag=1; next} /^## /{flag=0} flag" CHANGELOG.md > release-notes.md
65+
66+
if [ ! -s release-notes.md ]; then
67+
echo "Published ${PACKAGE_NAME}@${PACKAGE_VERSION} to npm." > release-notes.md
68+
fi
69+
70+
gh release create "${TAG_NAME}" \
71+
--target "${GITHUB_SHA}" \
72+
--title "${TAG_NAME}" \
73+
--notes-file release-notes.md

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## v6.12.2
4+
5+
- remove the direct `lodash` dependency
6+
- guard chart scaling and labels against empty or invalid data
7+
- avoid NaN stacked bar geometry when all stacked values are zero
8+
- normalize line chart dash arrays before rendering SVG strokes
9+
- improve LineChart dot interaction support on web
10+
- prevent null placeholders in one line dataset from inheriting another dataset's last point
11+
312
## v6.12.1
413

514
- prepare next patch release after v6.12.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-chart-kit",
3-
"version": "6.12.1",
3+
"version": "6.12.2",
44
"devDependencies": {
55
"@types/react": "16.14.8",
66
"@types/react-native": "^0.62.13",

0 commit comments

Comments
 (0)