Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 629f6dd425 | |||
| d141ceeaf7 | |||
| 7d3c94cae6 | |||
| 5bae452365 |
@@ -88,7 +88,20 @@ jobs:
|
|||||||
- name: Release
|
- name: Release
|
||||||
run: |
|
run: |
|
||||||
npmci node install stable
|
npmci node install stable
|
||||||
|
npmci npm install
|
||||||
|
# Extract server host from GITHUB_SERVER_URL (remove https://)
|
||||||
|
GITEA_HOST="${GITHUB_SERVER_URL#https://}"
|
||||||
|
GITEA_REGISTRY="$GITHUB_SERVER_URL/api/packages/$GITHUB_REPOSITORY_OWNER/npm/"
|
||||||
|
# Configure Gitea npm registry
|
||||||
|
npmci command npm config set @${GITHUB_REPOSITORY_OWNER}:registry "$GITEA_REGISTRY"
|
||||||
|
npmci command npm config set "//${GITEA_HOST}/api/packages/${GITHUB_REPOSITORY_OWNER}/npm/:_authToken" "$GITEA_TOKEN"
|
||||||
|
# Publish to Gitea
|
||||||
npmci npm publish
|
npmci npm publish
|
||||||
|
# Conditionally publish to npmjs.org if token exists
|
||||||
|
if [ -n "$NPMCI_TOKEN_NPM" ]; then
|
||||||
|
npmci command npm config set registry https://registry.npmjs.org
|
||||||
|
npmci npm publish
|
||||||
|
fi
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
needs: test
|
needs: test
|
||||||
|
|||||||
14
changelog.md
14
changelog.md
@@ -1,5 +1,19 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-10-25 - 4.3.3 - fix(ci)
|
||||||
|
Improve Gitea release workflow: install deps, configure Gitea npm registry, and optionally publish to npmjs.org
|
||||||
|
|
||||||
|
- Run npm install in the release job to ensure dependencies are available before publishing.
|
||||||
|
- Configure Gitea/npm registry using GITHUB_SERVER_URL and set auth token for the @<owner> scope.
|
||||||
|
- Publish to the Gitea npm registry during release.
|
||||||
|
- If NPMCI_TOKEN_NPM is provided, also publish to the public npmjs.org registry (conditional publish).
|
||||||
|
- Extract host from GITHUB_SERVER_URL to correctly set the registry auth URL.
|
||||||
|
|
||||||
|
## 2025-10-17 - 4.3.2 - fix(core)
|
||||||
|
Remove stray console.log from core module
|
||||||
|
|
||||||
|
- Removed a stray debug console.log(modulePath) from ts/core/index.ts that printed the module path during Node environment initialization
|
||||||
|
|
||||||
## 2025-08-19 - 4.3.1 - fix(core)
|
## 2025-08-19 - 4.3.1 - fix(core)
|
||||||
Improve streaming support and timeout handling; add browser streaming & timeout tests and README clarifications
|
Improve streaming support and timeout handling; add browser streaming & timeout tests and README clarifications
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@push.rocks/smartrequest",
|
"name": "@push.rocks/smartrequest",
|
||||||
"version": "4.3.1",
|
"version": "4.3.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
|
"description": "A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartrequest',
|
name: '@push.rocks/smartrequest',
|
||||||
version: '4.3.1',
|
version: '4.3.3',
|
||||||
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
|
description: 'A module for modern HTTP/HTTPS requests with support for form data, file uploads, JSON, binary data, streams, and more.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ if (smartenvInstance.isNode) {
|
|||||||
plugins.smartpath.dirname(import.meta.url),
|
plugins.smartpath.dirname(import.meta.url),
|
||||||
'../core_node/index.js',
|
'../core_node/index.js',
|
||||||
);
|
);
|
||||||
console.log(modulePath);
|
|
||||||
const impl = await smartenvInstance.getSafeNodeModule(modulePath);
|
const impl = await smartenvInstance.getSafeNodeModule(modulePath);
|
||||||
CoreRequest = impl.CoreRequest;
|
CoreRequest = impl.CoreRequest;
|
||||||
CoreResponse = impl.CoreResponse;
|
CoreResponse = impl.CoreResponse;
|
||||||
|
|||||||
Reference in New Issue
Block a user