create-platformatic 1.8.1 → 1.9.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.
- package/package.json +4 -4
- package/src/ghaction.mjs +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Create platformatic-db interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"strip-ansi": "^7.1.0",
|
|
36
36
|
"undici": "^5.25.4",
|
|
37
37
|
"which": "^3.0.1",
|
|
38
|
-
"@platformatic/config": "1.
|
|
38
|
+
"@platformatic/config": "1.9.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"ajv": "^8.12.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"tap": "^16.3.9",
|
|
49
49
|
"typescript": "~5.2.2",
|
|
50
50
|
"yaml": "^2.3.2",
|
|
51
|
-
"@platformatic/
|
|
52
|
-
"@platformatic/
|
|
51
|
+
"@platformatic/db": "1.9.0",
|
|
52
|
+
"@platformatic/service": "1.9.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"test:cli": "tap --no-coverage test/cli/*test.mjs -t120",
|
package/src/ghaction.mjs
CHANGED
|
@@ -99,6 +99,13 @@ ${envBlock}
|
|
|
99
99
|
|
|
100
100
|
export const staticWorkspaceGHTemplate = (env, config, buildTS = false) => {
|
|
101
101
|
const envString = envAsString(env, 3)
|
|
102
|
+
let envBlock = ''
|
|
103
|
+
if (envString.length) {
|
|
104
|
+
envBlock = `
|
|
105
|
+
env:
|
|
106
|
+
${envString}
|
|
107
|
+
`
|
|
108
|
+
}
|
|
102
109
|
|
|
103
110
|
return `name: Deploy Platformatic application to the cloud
|
|
104
111
|
on:
|
|
@@ -116,8 +123,7 @@ jobs:
|
|
|
116
123
|
permissions:
|
|
117
124
|
contents: read
|
|
118
125
|
runs-on: ubuntu-latest
|
|
119
|
-
|
|
120
|
-
${envString}
|
|
126
|
+
${envBlock}
|
|
121
127
|
steps:
|
|
122
128
|
- name: Checkout application project repository
|
|
123
129
|
uses: actions/checkout@v3
|