type-guardians 1.2.0 → 1.2.1--canary.4.fab7b79.0

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.
package/.autorc ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "noVersionPrefix": true,
3
+ "plugins": [
4
+ "npm",
5
+ [
6
+ "conventional-commits",
7
+ {
8
+ "preset": "angular"
9
+ }
10
+ ]
11
+ ]
12
+ }
@@ -5,7 +5,7 @@ jobs:
5
5
  runs-on: ubuntu-latest
6
6
  timeout-minutes: 2
7
7
  steps:
8
- - uses: actions/checkout@v4
8
+ - uses: actions/checkout@v5
9
9
  - uses: pnpm/action-setup@v4
10
10
  - uses: biomejs/setup-biome@v2
11
11
  - uses: actions/setup-node@v4
@@ -16,3 +16,30 @@ jobs:
16
16
  - run: biome ci .
17
17
  - run: pnpm ts:check
18
18
  - run: pnpm test
19
+
20
+ publish:
21
+ runs-on: ubuntu-latest
22
+ timeout-minutes: 10
23
+ permissions:
24
+ pull-requests: write
25
+ contents: read
26
+ id-token: write
27
+ environment:
28
+ name: npm
29
+ url: https://www.npmjs.com/package/type-guardians
30
+ if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
31
+ steps:
32
+ - uses: actions/checkout@v5
33
+ with:
34
+ fetch-depth: 0
35
+ ssh-key: ${{ secrets.SSH_KEY }}
36
+ - uses: pnpm/action-setup@v4
37
+ - uses: actions/setup-node@v4
38
+ with:
39
+ node-version: 22
40
+ cache: 'pnpm'
41
+ - run: pnpm install
42
+ - run: pnpm release
43
+ env:
44
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,28 +1,50 @@
1
1
  {
2
- "name": "type-guardians",
3
- "version": "1.2.0",
4
- "description": "",
5
- "keywords": [],
6
- "repository": "https://github.com/pchalupa/type-guardians",
7
- "homepage": "https://github.com/pchalupa/type-guardians#readme",
8
- "bugs": {
9
- "url": "https://github.com/pchalupa/type-guardians/issues"
10
- },
11
- "author": "pchalupa <chalupa.petr93@gmail.com> (https://github.com/pchalupa)",
12
- "license": "MIT",
13
- "type": "module",
14
- "devDependencies": {
15
- "@biomejs/biome": "2.1.4",
16
- "@vitest/coverage-v8": "3.1.2",
17
- "typescript": "^5.9.2",
18
- "vitest": "^3.1.2"
19
- },
20
- "scripts": {
21
- "lint": "biome lint .",
22
- "format": "biome format .",
23
- "ts:check": "tsc --noEmit",
24
- "test": "vitest run",
25
- "test:watch": "vitest watch",
26
- "test:coverage": "vitest test --coverage"
27
- }
28
- }
2
+ "name": "type-guardians",
3
+ "version": "1.2.1--canary.4.fab7b79.0",
4
+ "description": "A lightweight, zero-dependency TypeScript library providing type guards and assertions for safer and more readable code",
5
+ "keywords": [
6
+ "typescript",
7
+ "type-guards",
8
+ "type-assertions",
9
+ "type-safety",
10
+ "runtime-validation",
11
+ "type-checking",
12
+ "assertions",
13
+ "guards",
14
+ "validation"
15
+ ],
16
+ "repository": "https://github.com/pchalupa/type-guardians",
17
+ "homepage": "https://github.com/pchalupa/type-guardians#readme",
18
+ "bugs": {
19
+ "url": "https://github.com/pchalupa/type-guardians/issues"
20
+ },
21
+ "author": "pchalupa <chalupa.petr93@gmail.com> (https://github.com/pchalupa)",
22
+ "license": "MIT",
23
+ "type": "module",
24
+ "exports": {
25
+ "./string": "./string.ts",
26
+ "./number": "./number.ts"
27
+ },
28
+ "scripts": {
29
+ "lint": "biome lint .",
30
+ "format": "biome format .",
31
+ "ts:check": "tsc --noEmit",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest watch",
34
+ "test:coverage": "vitest test --coverage",
35
+ "release": "auto shipit"
36
+ },
37
+ "devDependencies": {
38
+ "@auto-it/conventional-commits": "^11.3.0",
39
+ "@auto-it/npm": "^11.3.0",
40
+ "@biomejs/biome": "2.1.4",
41
+ "@vitest/coverage-v8": "3.1.2",
42
+ "auto": "^11.3.0",
43
+ "typescript": "^5.9.2",
44
+ "vitest": "^3.1.2"
45
+ },
46
+ "publishConfig": {
47
+ "provenance": true
48
+ },
49
+ "packageManager": "pnpm@10.14.0"
50
+ }