declapract-typescript-ehmpathy 0.36.3 → 0.36.5
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/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +2 -1
- package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +2 -2
- package/dist/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +21 -0
- package/package.json +1 -1
package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml
CHANGED
|
@@ -50,6 +50,7 @@ on:
|
|
|
50
50
|
jobs:
|
|
51
51
|
deploy-os:
|
|
52
52
|
strategy:
|
|
53
|
+
fail-fast: false # allow them to independently succeed; one platform having an issue shouldn't block others
|
|
53
54
|
matrix:
|
|
54
55
|
platform:
|
|
55
56
|
- ios
|
|
@@ -100,7 +101,7 @@ jobs:
|
|
|
100
101
|
run: eas update --auto --channel ${{ inputs.build }} --platform ${{ matrix.platform }} --non-interactive
|
|
101
102
|
|
|
102
103
|
- name: deploy app binary
|
|
103
|
-
run: eas build --profile ${{ inputs.build }} --platform ${{ matrix.platform }} --non-interactive
|
|
104
|
+
run: eas build --profile ${{ inputs.build }} --platform ${{ matrix.platform }} --non-interactive --no-wait ${{ inputs.build == 'production' && '--auto-submit' || '' }}
|
|
104
105
|
|
|
105
106
|
deploy-web:
|
|
106
107
|
name: web
|
package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml
CHANGED
|
@@ -27,7 +27,7 @@ on:
|
|
|
27
27
|
- 'false'
|
|
28
28
|
|
|
29
29
|
concurrency:
|
|
30
|
-
group: ${{ github.workflow }}-${{ github.ref }} # per [workflow] x [branch, tag]
|
|
30
|
+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} # per [workflow] x [branch, tag] x [event]
|
|
31
31
|
cancel-in-progress: true # only cancel work flows on non-latest commits
|
|
32
32
|
|
|
33
33
|
jobs:
|
|
@@ -36,7 +36,7 @@ jobs:
|
|
|
36
36
|
if: github.event_name != 'workflow_dispatch' || github.event.inputs.thoroughly == 'true'
|
|
37
37
|
with:
|
|
38
38
|
aws-region: us-east-1
|
|
39
|
-
aws-account-id: '
|
|
39
|
+
aws-account-id: '@declapract{variable.awsAccountId.dev}'
|
|
40
40
|
secrets:
|
|
41
41
|
aws-access-key-id: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
|
|
42
42
|
aws-secret-access-key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FileCheckFunction, FileFixFunction } from 'declapract';
|
|
2
|
+
import { dedupe } from 'domain-objects';
|
|
3
|
+
import expect from 'expect';
|
|
4
|
+
|
|
5
|
+
const expectedIgnores = ['android/', 'ios/'].sort();
|
|
6
|
+
|
|
7
|
+
const defineExpectedContents = (contents: string | null): string => {
|
|
8
|
+
const ignoresAlreadyDefined = contents ? contents.split('\n') : [];
|
|
9
|
+
const finalLines = dedupe([...ignoresAlreadyDefined, ...expectedIgnores])
|
|
10
|
+
.sort() // sorted
|
|
11
|
+
.filter((line) => !!line); // without empty lines
|
|
12
|
+
return [...finalLines.sort(), ''].join('\n');
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const check: FileCheckFunction = (contents) => {
|
|
16
|
+
expect(contents).toEqual(defineExpectedContents(contents));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const fix: FileFixFunction = (contents) => {
|
|
20
|
+
return { contents: defineExpectedContents(contents) };
|
|
21
|
+
};
|
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.36.
|
|
5
|
+
"version": "0.36.5",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"repository": "ehmpathy/declapract-typescript-ehmpathy",
|