cipher-logger 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,60 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Setup pnpm
21
+ uses: pnpm/action-setup@v4
22
+ with:
23
+ version: 10
24
+
25
+ - name: Setup Node.js
26
+ uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 24
29
+ registry-url: https://registry.npmjs.org
30
+ cache: pnpm
31
+
32
+ - name: Update npm
33
+ run: npm install -g npm@latest
34
+
35
+ - name: Check versions
36
+ run: |
37
+ echo "Node: $(node --version)"
38
+ echo "npm: $(npm --version)"
39
+ echo "pnpm: $(pnpm --version)"
40
+
41
+ - name: Install dependencies
42
+ run: pnpm install --frozen-lockfile
43
+
44
+ - name: Build
45
+ run: pnpm run build
46
+
47
+ - name: Publish
48
+ run: |
49
+ NAME=$(node -p "require('./package.json').name")
50
+ VERSION=$(node -p "require('./package.json').version")
51
+
52
+ echo "Package: ${NAME}"
53
+ echo "Version: ${VERSION}"
54
+
55
+ if npm view "${NAME}@${VERSION}" version >/dev/null 2>&1; then
56
+ echo "Skipping publish: ${NAME}@${VERSION} already exists on npm"
57
+ exit 0
58
+ fi
59
+
60
+ npm publish --access public
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "cipher-logger",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "See every request. Capture every error. Understand your application.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
- "bin": {
9
- "cipher-logger": "./dist/bin/cli.js"
10
- },
11
8
  "scripts": {
12
9
  "build": "tsup",
13
10
  "prepublishOnly": "npm run build"