Skip to content

Commit df60e3a

Browse files
committed
chore: v2.1.1 - Update changelog, fix npm package build, and enhance CI/CD workflows
- Fixed missing `dist/` folder in the published package by adding a build step to the npm-publish workflow. - Added GitHub Actions for automated deployments, including CI tests and server/website deployment workflows. - Updated Vitest configuration for CI to ensure tests pass without requiring a `.dev.vars` file. - Added `preview_urls` setting in Wrangler configuration to suppress warnings.
1 parent fe83556 commit df60e3a

5 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm ci --ignore-scripts
17+
- run: npm run build
1718
- run: npm publish
1819
env:
1920
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to NPort will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.1.1] - 2026-01-27
9+
10+
### Fixed
11+
- 🐛 **NPM Package Build**: Fixed missing `dist/` folder in published package
12+
- Added build step to npm-publish workflow before publishing
13+
- Package now includes compiled JavaScript files correctly
14+
15+
### Added
16+
- 🚀 **CI/CD Workflows**: Added GitHub Actions for automated deployments
17+
- `ci.yml`: Runs tests on push to main and pull requests
18+
- `deploy-server.yml`: Auto-deploys Cloudflare Worker on server changes
19+
- `deploy-website.yml`: Auto-deploys website to Cloudflare Pages on changes
20+
- 🧪 **Server Test Configuration**: Fixed Vitest config for CI environment
21+
- Added miniflare bindings for test environment variables
22+
- Tests now pass in CI without `.dev.vars` file
23+
- ⚙️ **Wrangler Configuration**: Added `preview_urls` setting to suppress warnings
24+
825
## [2.1.0] - 2026-01-27
926

1027
### Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nport",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Free & open source ngrok alternative - Tunnel HTTP/HTTPS connections via Cloudflare Edge with custom subdomains",
55
"type": "module",
66
"main": "dist/index.js",

server/wrangler.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "nport",
44
"main": "src/index.ts",
55
"compatibility_date": "2025-09-27",
6+
"preview_urls": false,
67
"observability": {
78
"enabled": true
89
},

0 commit comments

Comments
 (0)