@codfish/actions-playground 6.2.1 → 6.4.0-beta.1
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/.eslintrc.js +7 -0
- package/.github/workflows/release.yml +7 -2
- package/.github/workflows/troubleshooting-target-event.yml +52 -0
- package/.github/workflows/validate.yml +1 -1
- package/Dockerfile +1 -1
- package/app.config.ts +82 -0
- package/package.json +6 -2
- package/provisioning/Chart.yml +2 -2
- package/test.txt +0 -2
- package/tsconfig.eslint.json +9 -0
- package/tsconfig.json +21 -0
package/.eslintrc.js
ADDED
|
@@ -67,7 +67,7 @@ jobs:
|
|
|
67
67
|
- run: cat Dockerfile
|
|
68
68
|
|
|
69
69
|
- name: semantic-release
|
|
70
|
-
uses: docker://ghcr.io/codfish/semantic-release-action@sha256:
|
|
70
|
+
uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4c0955361cf42e5ab9bb05df3a1e2a781c443f9760b63a68957689445051a2fb
|
|
71
71
|
id: semantic
|
|
72
72
|
with:
|
|
73
73
|
additional-packages: |
|
|
@@ -80,7 +80,7 @@ jobs:
|
|
|
80
80
|
{
|
|
81
81
|
'replacements': [
|
|
82
82
|
{
|
|
83
|
-
'files': ['Dockerfile'],
|
|
83
|
+
'files': ['Dockerfile'],
|
|
84
84
|
'from': 'RELEASE_VERSION=.*',
|
|
85
85
|
'to': 'RELEASE_VERSION=${nextRelease.version}'
|
|
86
86
|
},
|
|
@@ -88,6 +88,11 @@ jobs:
|
|
|
88
88
|
'files': ['provisioning/Chart.yml'],
|
|
89
89
|
'from': 'ersion: .*',
|
|
90
90
|
'to': 'ersion: ${nextRelease.version}'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
'files': ['app.config.ts'],
|
|
94
|
+
'from': 'version: \'.*\'',
|
|
95
|
+
'to': 'version: \'${nextRelease.version}\''
|
|
91
96
|
}
|
|
92
97
|
]
|
|
93
98
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Troubleshooting Github Actions
|
|
2
|
+
|
|
3
|
+
on: pull_request_target
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
troubleshooting:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
|
+
|
|
12
|
+
- run: printenv
|
|
13
|
+
|
|
14
|
+
- name: docker login
|
|
15
|
+
run: |
|
|
16
|
+
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
|
|
17
|
+
echo "$GCR_TOKEN" | docker login ghcr.io -u codfish --password-stdin
|
|
18
|
+
env:
|
|
19
|
+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
20
|
+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
21
|
+
GCR_TOKEN: ${{ secrets.GCR_TOKEN }}
|
|
22
|
+
|
|
23
|
+
# https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions
|
|
24
|
+
- name: Dump GitHub context
|
|
25
|
+
env:
|
|
26
|
+
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
27
|
+
run: echo "$GITHUB_CONTEXT"
|
|
28
|
+
|
|
29
|
+
- name: Dump strategy context
|
|
30
|
+
env:
|
|
31
|
+
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
|
|
32
|
+
run: echo "$STRATEGY_CONTEXT"
|
|
33
|
+
|
|
34
|
+
- name: Dump matrix context
|
|
35
|
+
env:
|
|
36
|
+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
|
|
37
|
+
run: echo "$MATRIX_CONTEXT"
|
|
38
|
+
|
|
39
|
+
- name: Dump job context
|
|
40
|
+
env:
|
|
41
|
+
JOB_CONTEXT: ${{ toJson(job) }}
|
|
42
|
+
run: echo "$JOB_CONTEXT"
|
|
43
|
+
|
|
44
|
+
- name: Dump runner context
|
|
45
|
+
env:
|
|
46
|
+
RUNNER_CONTEXT: ${{ toJson(runner) }}
|
|
47
|
+
run: echo "$RUNNER_CONTEXT"
|
|
48
|
+
|
|
49
|
+
- name: Dump steps context
|
|
50
|
+
env:
|
|
51
|
+
STEPS_CONTEXT: ${{ toJson(steps) }}
|
|
52
|
+
run: echo "$STEPS_CONTEXT"
|
|
@@ -39,7 +39,7 @@ jobs:
|
|
|
39
39
|
hashFiles('**/package-lock.json') }}
|
|
40
40
|
|
|
41
41
|
- name: semantic release dry run
|
|
42
|
-
uses: docker://ghcr.io/codfish/semantic-release-action@sha256:
|
|
42
|
+
uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4c0955361cf42e5ab9bb05df3a1e2a781c443f9760b63a68957689445051a2fb
|
|
43
43
|
with:
|
|
44
44
|
dry-run: true
|
|
45
45
|
env:
|
package/Dockerfile
CHANGED
package/app.config.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { ConfigContext, ExpoConfig } from 'expo/config';
|
|
2
|
+
|
|
3
|
+
const getAppIdSuffix = () => {
|
|
4
|
+
if (!process.env.APP_ENV || process.env.APP_ENV === 'production') {
|
|
5
|
+
return '';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
return `.${process.env.APP_ENV}`; // e.g. '.beta'
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const getAppNameSuffix = () => {
|
|
12
|
+
if (!process.env.APP_ENV || process.env.APP_ENV === 'production') {
|
|
13
|
+
return '';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return ` (${process.env.APP_ENV.toUpperCase()})`; // e.g. ' (Beta)'
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const getAppLogo = () => {
|
|
20
|
+
if (process.env.APP_ENV === 'production') {
|
|
21
|
+
return './src/assets/logos/foo-app-icon.png';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return './src/assets/logos/foo-app-icon-beta.png';
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default ({ config }: ConfigContext): ExpoConfig => ({
|
|
28
|
+
...config,
|
|
29
|
+
name: `Foo Mobile${getAppNameSuffix()}`,
|
|
30
|
+
slug: 'foomobile',
|
|
31
|
+
version: '6.4.0-beta.1',
|
|
32
|
+
orientation: 'portrait',
|
|
33
|
+
icon: getAppLogo(),
|
|
34
|
+
scheme: 'foomobile',
|
|
35
|
+
userInterfaceStyle: 'automatic',
|
|
36
|
+
splash: {
|
|
37
|
+
image: './src/assets/logos/splash.png',
|
|
38
|
+
resizeMode: 'contain',
|
|
39
|
+
backgroundColor: '#FFFFFF',
|
|
40
|
+
},
|
|
41
|
+
ios: {
|
|
42
|
+
supportsTablet: true,
|
|
43
|
+
bundleIdentifier: `com.foo.oacmobile${getAppIdSuffix()}`,
|
|
44
|
+
entitlements: {
|
|
45
|
+
'com.apple.developer.networking.wifi-info': true,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
android: {
|
|
49
|
+
package: `com.foo.oac${getAppIdSuffix()}`,
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
'expo-router',
|
|
53
|
+
[
|
|
54
|
+
'react-native-auth0',
|
|
55
|
+
{
|
|
56
|
+
domain: 'foo-foo-testing-temporary.us.auth0.com',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
'expo-secure-store',
|
|
60
|
+
'expo-font',
|
|
61
|
+
[
|
|
62
|
+
'@sentry/react-native/expo',
|
|
63
|
+
{
|
|
64
|
+
url: 'https://sentry.io/',
|
|
65
|
+
project: 'foo-mobile',
|
|
66
|
+
organization: 'foo',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
],
|
|
70
|
+
experiments: {
|
|
71
|
+
typedRoutes: true,
|
|
72
|
+
},
|
|
73
|
+
extra: {
|
|
74
|
+
eas: {
|
|
75
|
+
projectId: 'c4d7f3e1-9a2b-4d8f-b5e6-8c1f2a3b4d5e',
|
|
76
|
+
},
|
|
77
|
+
router: {
|
|
78
|
+
origin: false,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
owner: 'foo',
|
|
82
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codfish/actions-playground",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.1",
|
|
4
4
|
"description": "My own testing ground for messing around with GitHub Actions.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,9 +34,13 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@commitlint/cli": "^8.2.0",
|
|
36
36
|
"@commitlint/config-conventional": "^8.2.0",
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
38
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
37
39
|
"cod-scripts": "^12.0.0",
|
|
40
|
+
"eslint": "^8.56.0",
|
|
38
41
|
"jsdoc": "^3.6.3",
|
|
39
|
-
"markdownlint-cli": "^0.18.0"
|
|
42
|
+
"markdownlint-cli": "^0.18.0",
|
|
43
|
+
"typescript": "^4.9.5"
|
|
40
44
|
},
|
|
41
45
|
"dependencies": {
|
|
42
46
|
"@babel/runtime": "^7.7.4",
|
package/provisioning/Chart.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appVersion: 6.
|
|
1
|
+
appVersion: 6.4.0-beta.1
|
|
2
2
|
name: actions-playground
|
|
3
|
-
version: 6.
|
|
3
|
+
version: 6.4.0-beta.1
|
package/test.txt
CHANGED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"noFallthroughCasesInSwitch": true,
|
|
12
|
+
"module": "esnext",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx"
|
|
18
|
+
},
|
|
19
|
+
"include": ["src", "app.config.ts"],
|
|
20
|
+
"exclude": ["node_modules"]
|
|
21
|
+
}
|