@esportsplus/typescript 0.9.2 → 0.10.2

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.
@@ -1,9 +1,27 @@
1
- name: bump
1
+ name: bump version
2
2
 
3
3
  on:
4
4
  push:
5
5
  branches: '**' # only trigger on branches, not on tags
6
+ workflow_call:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ permissions:
13
+ contents: write
6
14
 
7
15
  jobs:
8
16
  bump:
9
- uses: esportsplus/workflows/.github/workflows/bump.yml@main
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: checkout repo
20
+ uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+ - name: bump version
24
+ uses: jpb06/bump-package@latest
25
+ with:
26
+ minor-keywords: feat,minor,refactor
27
+ patch-keywords: fix,chore
@@ -3,10 +3,56 @@ name: dependabot automerge
3
3
  on:
4
4
  pull_request:
5
5
  types: [opened, synchronize, labeled]
6
- workflow_dispatch:
6
+ workflow_call:
7
+ secrets:
8
+ NPM_TOKEN:
9
+ required: true
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions:
16
+ contents: write
17
+ pull-requests: write
7
18
 
8
19
  jobs:
20
+ build:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: pnpm/action-setup@v4
25
+ name: Install pnpm
26
+ with:
27
+ run_install: false
28
+ version: latest
29
+ - uses: actions/setup-node@v4
30
+ with:
31
+ cache: 'pnpm'
32
+ node-version: 'latest'
33
+ registry-url: 'https://registry.npmjs.org'
34
+ - run: pnpm i && pnpm build
35
+ env:
36
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37
+
9
38
  automerge:
10
- secrets:
11
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12
- uses: esportsplus/workflows/.github/workflows/dependabot.yml@main
39
+ needs: build
40
+ permissions:
41
+ pull-requests: write
42
+ contents: write
43
+ runs-on: ubuntu-latest
44
+ if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
45
+ steps:
46
+ - uses: dependabot/fetch-metadata@v2
47
+ id: metadata
48
+ with:
49
+ alert-lookup: true
50
+ compat-lookup: true
51
+ github-token: ${{ secrets.GITHUB_TOKEN }}
52
+ - name: Approve and merge Dependabot PR
53
+ run: |
54
+ gh pr review --approve "$PR_URL"
55
+ gh pr merge --squash --auto "$PR_URL"
56
+ env:
57
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58
+ PR_URL: ${{ github.event.pull_request.html_url }}
@@ -3,14 +3,41 @@ name: publish to npm
3
3
  on:
4
4
  release:
5
5
  types: [published]
6
+ workflow_call:
7
+ secrets:
8
+ NPM_TOKEN:
9
+ required: true
6
10
  workflow_dispatch:
7
11
  workflow_run:
8
- workflows: [bump]
12
+ workflows: [bump version]
9
13
  types:
10
14
  - completed
11
15
 
16
+ concurrency:
17
+ group: ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress: true
19
+
12
20
  jobs:
13
- publish:
14
- secrets:
15
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISHING }}
16
- uses: esportsplus/workflows/.github/workflows/publish.yml@main
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: read
25
+ id-token: write
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - uses: pnpm/action-setup@v4
29
+ name: Install pnpm
30
+ with:
31
+ run_install: false
32
+ version: latest
33
+ - uses: actions/setup-node@v4
34
+ with:
35
+ cache: 'pnpm'
36
+ node-version: 'latest'
37
+ registry-url: 'https://registry.npmjs.org'
38
+ - run: pnpm config delete always-auth
39
+ - run: pnpm i
40
+ env:
41
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42
+ - run: pnpm build
43
+ - run: pnpm publish --provenance --no-git-checks
@@ -0,0 +1,9 @@
1
+ name: bump version
2
+
3
+ on:
4
+ push:
5
+ branches: '**' # only trigger on branches, not on tags
6
+
7
+ jobs:
8
+ bump:
9
+ uses: esportsplus/typescript/.github/workflows/bump.yml@main
@@ -0,0 +1,12 @@
1
+ name: dependabot automerge
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, synchronize, labeled]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ automerge:
10
+ secrets:
11
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
12
+ uses: esportsplus/typescript/.github/workflows/dependabot.yml@main
@@ -0,0 +1,16 @@
1
+ name: publish to npm
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+ workflow_run:
8
+ workflows: [bump version]
9
+ types:
10
+ - completed
11
+
12
+ jobs:
13
+ publish:
14
+ secrets:
15
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
16
+ uses: esportsplus/typescript/.github/workflows/publish.yml@main
package/package.json CHANGED
@@ -5,9 +5,9 @@
5
5
  "tsc-alias": "./bin/tsc-alias"
6
6
  },
7
7
  "dependencies": {
8
- "@esportsplus/cli-passthrough": "^0.0.10",
8
+ "@esportsplus/cli-passthrough": "^0.0.12",
9
9
  "tsc-alias": "^1.8.16",
10
- "typescript": "^5.8.3"
10
+ "typescript": "^5.9.3"
11
11
  },
12
12
  "exports": {
13
13
  "./package.json": "./package.json",
@@ -22,9 +22,13 @@
22
22
  "main": "build/index.js",
23
23
  "name": "@esportsplus/typescript",
24
24
  "private": false,
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "https://github.com/esportsplus/typescript"
28
+ },
25
29
  "type": "module",
26
30
  "types": "build/index.d.ts",
27
- "version": "0.9.2",
31
+ "version": "0.10.2",
28
32
  "scripts": {
29
33
  "build": "tsc && tsc-alias",
30
34
  "-": "-"