Skip to content

Commit 65f9338

Browse files
committed
ci: better publish gh releases (try)
1 parent b174106 commit 65f9338

File tree

5 files changed

+1365
-43
lines changed

5 files changed

+1365
-43
lines changed

.changeset/four-days-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
ci gh release

.github/workflows/version-or-publish.yml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -49,40 +49,8 @@ jobs:
4949
id: pub-or-release-pr
5050
with:
5151
version: pnpm changeset version
52-
publish: |
53-
pnpm pub-ci
54-
echo "$PUBLISHED_GIT_TAG" > .github/tag.txt
55-
echo "$PUBLISHED_VERSION_RELEASE_NOTES" > .github/notes.txt
52+
publish: pnpm pub-ci
5653
env:
5754
GITHUB_TOKEN: ${{ github.token }}
5855
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5956
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
60-
61-
- name: Export release variables
62-
id: export-release
63-
run: |
64-
if [ -f .github/tag.txt ]; then
65-
TAG=$(cat .github/tag.txt)
66-
echo "tag=$TAG" >> $GITHUB_OUTPUT
67-
fi
68-
69-
if [ -f .github/notes.txt ]; then
70-
NOTES=$(cat .github/notes.txt)
71-
NOTES="${NOTES//'%'/'%25'}"
72-
NOTES="${NOTES//$'\n'/'%0A'}"
73-
NOTES="${NOTES//$'\r'/'%0D'}"
74-
echo "notes=$NOTES" >> $GITHUB_OUTPUT
75-
fi
76-
77-
- name: Create GitHub Release
78-
if: steps.export-release.outputs.tag != ''
79-
continue-on-error: false
80-
uses: actions/create-release@v1
81-
env:
82-
GITHUB_TOKEN: ${{ github.token }}
83-
with:
84-
tag_name: ${{ steps.export-release.outputs.tag }}
85-
release_name: ${{ steps.export-release.outputs.tag }}
86-
body: ${{ steps.export-release.outputs.notes }}
87-
draft: false
88-
prerelease: false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"commitfmt": "^1.0.0",
6161
"eslint": "^8.57.0",
6262
"js2me-eslint-config": "^1.0.6",
63-
"js2me-exports-post-build-script": "^4.1.3",
63+
"js2me-exports-post-build-script": "^4.1.5",
6464
"jsdom": "^25.0.1",
6565
"lefthook": "^1.11.13",
6666
"nodemon": "^3.1.0",

0 commit comments

Comments
 (0)