Skip to content

Commit 560bf28

Browse files
committed
Fix publish CI configs
1 parent c141baa commit 560bf28

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.github/workflows/publish_release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: actions/setup-node@v4
2828
with:
2929
node-version: 22
30-
registry-url: 'https://registry.npmjs.org'
3130
- name: Restore cached dependencies
3231
uses: actions/cache@v4
3332
with:
@@ -51,6 +50,20 @@ jobs:
5150
- run: npm publish --tag ${{ inputs.prerelease == true && 'next' || 'latest' }}
5251
env:
5352
GITHUB_TOKEN: ${{ github.token }}
53+
- name: Collect npm logs
54+
if: always()
55+
run: |
56+
mkdir -p npm-logs
57+
if [ -d "$HOME/.npm/_logs" ]; then
58+
cp -a "$HOME/.npm/_logs/." npm-logs/
59+
fi
60+
- name: Upload npm logs
61+
if: always()
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: npm-logs
65+
path: npm-logs
66+
if-no-files-found: ignore
5467
- name: Push release commit if publish succeeded
5568
run: git push origin HEAD:${{ github.ref }}
5669
- name: Create release notes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@platformatic/python",
3-
"version": "0.1.0",
3+
"version": "0.0.1",
44
"description": "Integration of Python with Wattpm",
55
"homepage": "https://github.com/platformatic/python#readme",
66
"license": "Apache-2.0",

python/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@platformatic/python",
3+
"version": "0.0.1",
4+
"description": "Integration of Python with Wattpm",
5+
"homepage": "https://github.com/platformatic/python#readme",
6+
"license": "Apache-2.0",
7+
"author": "Platformatic Inc. <[email protected]> (https://platformatic.dev)",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/platformatic/python.git"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/platformatic/python/issues"
14+
},
15+
"keywords": [
16+
"wattpm",
17+
"thread",
18+
"python"
19+
],
20+
"publishConfig": {
21+
"registry": "https://registry.npmjs.org/",
22+
"access": "restricted",
23+
"scope": "@platformatic"
24+
}
25+
}

0 commit comments

Comments
 (0)