@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.
- package/.github/workflows/bump.yml +20 -2
- package/.github/workflows/dependabot.yml +50 -4
- package/.github/workflows/publish.yml +32 -5
- package/.github/workflows/templates/bump.yml +9 -0
- package/.github/workflows/templates/dependabot.yml +12 -0
- package/.github/workflows/templates/publish.yml +16 -0
- package/package.json +7 -3
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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,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.
|
|
8
|
+
"@esportsplus/cli-passthrough": "^0.0.12",
|
|
9
9
|
"tsc-alias": "^1.8.16",
|
|
10
|
-
"typescript": "^5.
|
|
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.
|
|
31
|
+
"version": "0.10.2",
|
|
28
32
|
"scripts": {
|
|
29
33
|
"build": "tsc && tsc-alias",
|
|
30
34
|
"-": "-"
|