declapract-typescript-ehmpathy 0.29.2 → 0.30.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.
|
@@ -7,6 +7,14 @@ on:
|
|
|
7
7
|
branches:
|
|
8
8
|
- 'main'
|
|
9
9
|
- 'master'
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
inputs:
|
|
12
|
+
stage:
|
|
13
|
+
description: 'the stage to which to deploy (dev or prod)'
|
|
14
|
+
required: true
|
|
15
|
+
thoroughly:
|
|
16
|
+
description: 'whether to execute the test suite before deloyment (true or false)'
|
|
17
|
+
required: true
|
|
10
18
|
|
|
11
19
|
concurrency:
|
|
12
20
|
group: ${{ github.workflow }}-${{ github.ref }} # per [workflow] x [branch, tag]
|
|
@@ -15,6 +23,7 @@ concurrency:
|
|
|
15
23
|
jobs:
|
|
16
24
|
test:
|
|
17
25
|
uses: ./.github/workflows/.test.yml
|
|
26
|
+
if: github.event_name != 'workflow_dispatch' || github.event.inputs.thoroughly == 'true'
|
|
18
27
|
with:
|
|
19
28
|
aws-region: us-east-1
|
|
20
29
|
aws-account-id: '@declapract{variable.awsAccountId.dev}'
|
|
@@ -24,8 +33,10 @@ jobs:
|
|
|
24
33
|
|
|
25
34
|
dev:
|
|
26
35
|
uses: ./.github/workflows/.deploy-sls.yml
|
|
27
|
-
if: github.ref == 'refs/heads/main'
|
|
28
36
|
needs: [test]
|
|
37
|
+
if: |
|
|
38
|
+
(github.ref == 'refs/heads/main' || github.event.inputs.stage == 'dev') &&
|
|
39
|
+
always() && (needs.test.result == 'success' || needs.test.result == 'skipped')
|
|
29
40
|
with:
|
|
30
41
|
stage: dev
|
|
31
42
|
github-environment: dev
|
|
@@ -37,7 +48,9 @@ jobs:
|
|
|
37
48
|
|
|
38
49
|
prod:
|
|
39
50
|
uses: ./.github/workflows/.deploy-sls.yml
|
|
40
|
-
if:
|
|
51
|
+
if: |
|
|
52
|
+
startsWith(github.ref, 'refs/tags/') || (github.event.inputs.stage == 'prod' && github.ref == 'refs/heads/main') &&
|
|
53
|
+
always() && (needs.test.result == 'success' || needs.test.result == 'skipped')
|
|
41
54
|
needs: [test]
|
|
42
55
|
with:
|
|
43
56
|
stage: prod
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "declapract-typescript-ehmpathy",
|
|
3
3
|
"author": "ehmpathy",
|
|
4
4
|
"description": "declapract best practices declarations for typescript",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.30.0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|
|
8
8
|
"homepage": "https://github.com/ehmpathy/declapract-typescript-ehmpathy",
|