Skip to content

Commit 6919e9f

Browse files
committed
chore: bump version in package, update readme
Updated the new version in package.json . Fixed option type i.e. -p to -P . Added contribution and community note along with npm stats to readme.md. Also updated the ci workflow to sync the version bump with repo code
1 parent fb18bfe commit 6919e9f

3 files changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# How version bumping and publishing works?
2+
# Developer creates a tag with correct version number,
3+
# attaches to the latest commit & pushes to the main branch
14
name: CI
25

36
on:
@@ -20,6 +23,8 @@ jobs:
2023
steps:
2124
- name: Checkout code
2225
uses: actions/checkout@v4
26+
with:
27+
token: ${{secrets.PAT_TOKEN}}
2328
- name: Setup Node.js
2429
uses: actions/setup-node@v4
2530
with:
@@ -39,10 +44,14 @@ jobs:
3944
# commit message should include a valid tag
4045
# for pushing with tags use --follow-tags
4146
- name: Bump app version as per the tag
42-
run: bun pm version from-git
47+
run: |
48+
bun pm version from-git -m "chore: update version"
4349
4450
- name: Publish to npm using OIDC
4551
run: npm publish --provenance --access public
4652
env:
4753
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
55+
- name: Sync with repo
56+
run: git push origin main
4857

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# caching-proxy
1+
<div align='center'>
2+
3+
# caching-proxy-cli
24

35
A text based forward-proxy server with caching capability.
46

7+
[![npm version](https://img.shields.io/npm/v/caching-proxy-cli.svg)](https://www.npmjs.com/package/caching-proxy-cli)
8+
[![npm downloads](https://img.shields.io/npm/dm/caching-proxy-cli.svg)](https://www.npmjs.com/package/caching-proxy-cli)
9+
[![license](https://img.shields.io/npm/l/caching-proxy-cli.svg)](./LICENSE)
10+
11+
</div>
12+
513
## Pre-requisites
614
- Bun - [installation guide](https://bun.com/docs/installation)
715
- Node.js >=20.0
16+
- Redis [run in docker](https://redis.io/docs/latest/operate/oss_and_stack/install/install-stack/docker/)
817

918
## Installation
1019

@@ -26,7 +35,7 @@ _Now, you can use the app from anywhere in your computer by typing
2635

2736
## Options
2837
- __-V, --version__ : Output the version number
29-
- __-p, --port <number>__ : Port for proxy server
38+
- __-P, --port <number>__ : Port for proxy server
3039
- __-U, --url <URL>__ : URL of the server to which requests are forwarded
3140
- __-R, --redis <hostname:port>__ : Provide the redis <hostname:port>
3241
- __-C, --clear__: Clear cached responses
@@ -41,4 +50,13 @@ _Now, you can use the app from anywhere in your computer by typing
4150
- Clear the cache store.
4251

4352
## Credits
44-
[Backend Projects - Roadmap.sh](https://roadmap.sh/projects/caching-server)
53+
[Backend Projects - Roadmap.sh](https://roadmap.sh/projects/caching-server)
54+
55+
## Contributing
56+
This project is open for contributions!
57+
58+
If you’d like to help improve it, feel free to open an issue or submit a pull request - I’ll review it as soon as possible :)
59+
60+
## Note
61+
This is a personal project intended for learning and experimentation.
62+
Contributions and testing are welcome — but it’s not ready (or meant) for production use.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "caching-proxy-cli",
33
"module": "index.ts",
44
"type": "module",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"repository": {
7-
"url": "https://github.com/pradeept/caching-proxy-cli"
7+
"url": "git+https://github.com/pradeept/caching-proxy-cli.git"
88
},
99
"bin": {
1010
"caching-proxy-cli": "index.ts"

0 commit comments

Comments
 (0)