@book000/create-ts 0.1.16 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@book000/create-ts",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Create book000-style TypeScript projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "run-z": "2.1.0",
37
37
  "tsdown": "0.22.4",
38
38
  "typescript": "6.0.3",
39
- "vitest": "4.1.9"
39
+ "vitest": "4.1.10"
40
40
  },
41
41
  "scripts": {
42
42
  "preinstall": "npx only-allow pnpm",
@@ -11,69 +11,13 @@ on:
11
11
  branches:
12
12
  - main
13
13
  - master
14
- pull_request_target:
15
- branches:
16
- - main
17
- - master
18
- types:
19
- - opened
20
- - synchronize
21
- - reopened
22
14
  merge_group:
23
15
 
24
16
  concurrency:
25
- # pull_request と pull_request_target が同一グループになると互いをキャンセルしてしまうため
26
- # event_name を含めることで両イベントのキャンセルを独立させる
27
17
  group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
28
18
  cancel-in-progress: true
29
19
 
30
20
  jobs:
31
- post-approval-request:
32
- name: Post approval request
33
- runs-on: ubuntu-latest
34
- # フォーク PR のときのみ承認リクエストを投稿する(closed は不要)
35
- if: github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && github.event.action != 'closed'
36
- continue-on-error: true
37
- permissions:
38
- issues: write
39
- pull-requests: write
40
- steps:
41
- - name: Find existing approval request comment
42
- id: find-comment
43
- uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4
44
- with:
45
- issue-number: ${{ github.event.pull_request.number }}
46
- comment-author: github-actions[bot]
47
- body-includes: Environment 承認待ち
48
-
49
- - name: Post or update approval request comment
50
- uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5
51
- with:
52
- comment-id: ${{ steps.find-comment.outputs.comment-id }}
53
- issue-number: ${{ github.event.pull_request.number }}
54
- edit-mode: replace
55
- body: |
56
- ## Environment 承認待ち
57
-
58
- この PR のビルドを実行するには、Environment `fork-pr-build` の承認が必要です。
59
-
60
- [Actions run を確認して承認してください](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}?pr=${{ github.event.pull_request.number }})
61
-
62
- approval-gate:
63
- name: Approval gate
64
- runs-on: ubuntu-latest
65
- needs: post-approval-request
66
- # post-approval-request の結果に関わらず常に実行する
67
- if: always()
68
- # フォーク PR かつ closed でない場合のみ Environment で手動承認が必要
69
- environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && github.event.action != 'closed' && 'fork-pr-build' || '' }}
70
- permissions: {}
71
- steps:
72
- - name: Approval granted
73
- run: echo "Approval gate passed"
74
-
75
21
  node-ci:
76
22
  name: Node CI
77
- needs: approval-gate
78
- if: always() && needs.approval-gate.result == 'success'
79
23
  uses: book000/templates/.github/workflows/reusable-nodejs-ci-pnpm.yml@master