From 6dc8b1b7b77872edf785a8659e40ddabc5933ec3 Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Fri, 10 Jan 2025 14:59:18 -0300 Subject: [PATCH 1/5] fix(templates/butter): Update workflow and dependencies for angular-starter-buttercms --- .../.github/workflows/main.yml | 6 +- .../package-lock.json | 58 +++++++++++++++++++ .../angular-starter-buttercms/package.json | 1 + 3 files changed, 64 insertions(+), 1 deletion(-) diff --git a/templates/angular/angular-starter-buttercms/.github/workflows/main.yml b/templates/angular/angular-starter-buttercms/.github/workflows/main.yml index 2f819135..e85250cf 100644 --- a/templates/angular/angular-starter-buttercms/.github/workflows/main.yml +++ b/templates/angular/angular-starter-buttercms/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: node-version: 18 - name: Install dependencies - run: yarn + run: npm i - name: Install Azion CLI run: | @@ -33,6 +33,10 @@ jobs: sudo mv azionlinux /usr/bin/azion sudo chmod u+x /usr/bin/azion + - name: Create .env file + run: | + echo "NG_APP_ANGULAR_BUTTER_CMS_API_KEY=${{ secrets.NG_APP_ANGULAR_BUTTER_CMS_API_KEY }}" >> .env + - name: Azion Action Deploy run: | azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} diff --git a/templates/angular/angular-starter-buttercms/package-lock.json b/templates/angular/angular-starter-buttercms/package-lock.json index 1afba8c1..e8d12421 100644 --- a/templates/angular/angular-starter-buttercms/package-lock.json +++ b/templates/angular/angular-starter-buttercms/package-lock.json @@ -16,6 +16,7 @@ "@angular/platform-browser": "^15.1.2", "@angular/platform-browser-dynamic": "^15.1.2", "@angular/router": "^15.1.2", + "azion": "latest", "buttercms": "^1.2.15", "dotenv": "^16.0.3", "rxjs": "~7.8.0", @@ -5094,6 +5095,34 @@ "follow-redirects": "^1.14.0" } }, + "node_modules/azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion", + "azlib": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/azion/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/babel-loader": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.2.tgz", @@ -9887,6 +9916,14 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", @@ -15855,6 +15892,22 @@ "follow-redirects": "^1.14.0" } }, + "azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "requires": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "dependencies": { + "chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==" + } + } + }, "babel-loader": { "version": "9.1.2", "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-9.1.2.tgz", @@ -19428,6 +19481,11 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + }, "promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", diff --git a/templates/angular/angular-starter-buttercms/package.json b/templates/angular/angular-starter-buttercms/package.json index eb85504f..e9ef4693 100644 --- a/templates/angular/angular-starter-buttercms/package.json +++ b/templates/angular/angular-starter-buttercms/package.json @@ -19,6 +19,7 @@ "@angular/platform-browser": "^15.1.2", "@angular/platform-browser-dynamic": "^15.1.2", "@angular/router": "^15.1.2", + "azion": "latest", "buttercms": "^1.2.15", "dotenv": "^16.0.3", "rxjs": "~7.8.0", From b4fc25e842dffe649905a795b11a8b0836c0cad5 Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Fri, 10 Jan 2025 15:02:16 -0300 Subject: [PATCH 2/5] fix(templates/butter): Update workflow and dependencies for gatsby-starter-buttercms --- .../.github/workflows/main.yml | 6 ++- .../package-lock.json | 45 +++++++++++++++++++ .../gatsby-starter-buttercms/package.json | 1 + 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/templates/gatsby/gatsby-starter-buttercms/.github/workflows/main.yml b/templates/gatsby/gatsby-starter-buttercms/.github/workflows/main.yml index cf8d83e4..04e8c43b 100644 --- a/templates/gatsby/gatsby-starter-buttercms/.github/workflows/main.yml +++ b/templates/gatsby/gatsby-starter-buttercms/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: node-version: 18 - name: Install dependencies - run: yarn + run: npm i - name: Install Azion CLI run: | @@ -33,6 +33,10 @@ jobs: sudo mv azionlinux /usr/bin/azion sudo chmod u+x /usr/bin/azion + - name: Create .env file + run: | + echo "BUTTER_CMS_API_KEY=${{ secrets.BUTTER_CMS_API_KEY }}" >> .env + - name: Azion Action Deploy run: | azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} diff --git a/templates/gatsby/gatsby-starter-buttercms/package-lock.json b/templates/gatsby/gatsby-starter-buttercms/package-lock.json index ecad2754..e920cd27 100644 --- a/templates/gatsby/gatsby-starter-buttercms/package-lock.json +++ b/templates/gatsby/gatsby-starter-buttercms/package-lock.json @@ -8,6 +8,7 @@ "name": "butter-cms-gatsby.js", "version": "2.0.1", "dependencies": { + "azion": "latest", "bootstrap": "^5.2.3", "buttercms": "^1.2.15", "gatsby": "^5.7.0", @@ -5326,6 +5327,34 @@ "deep-equal": "^2.0.5" } }, + "node_modules/azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion", + "azlib": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/azion/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/b4a": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", @@ -21648,6 +21677,22 @@ "deep-equal": "^2.0.5" } }, + "azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "requires": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "dependencies": { + "chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==" + } + } + }, "b4a": { "version": "1.6.4", "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.4.tgz", diff --git a/templates/gatsby/gatsby-starter-buttercms/package.json b/templates/gatsby/gatsby-starter-buttercms/package.json index 749a94f5..101f5dd6 100644 --- a/templates/gatsby/gatsby-starter-buttercms/package.json +++ b/templates/gatsby/gatsby-starter-buttercms/package.json @@ -16,6 +16,7 @@ "lint": "eslint src/**/*.js" }, "dependencies": { + "azion": "latest", "bootstrap": "^5.2.3", "buttercms": "^1.2.15", "gatsby": "^5.7.0", From 4ec9be4c281f83d7a61a336f5c236a306405ffd5 Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Fri, 10 Jan 2025 15:09:41 -0300 Subject: [PATCH 3/5] fix(templates/butter): Update workflow and dependencies for nuxt-starter-buttercms --- .../.github/workflows/main.yml | 6 ++- .../nuxt-starter-buttercms/package-lock.json | 54 ++++++++++++++++--- .../nuxt/nuxt-starter-buttercms/package.json | 1 + 3 files changed, 52 insertions(+), 9 deletions(-) diff --git a/templates/nuxt/nuxt-starter-buttercms/.github/workflows/main.yml b/templates/nuxt/nuxt-starter-buttercms/.github/workflows/main.yml index 2f819135..810c7d9b 100644 --- a/templates/nuxt/nuxt-starter-buttercms/.github/workflows/main.yml +++ b/templates/nuxt/nuxt-starter-buttercms/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: node-version: 18 - name: Install dependencies - run: yarn + run: npm i - name: Install Azion CLI run: | @@ -33,6 +33,10 @@ jobs: sudo mv azionlinux /usr/bin/azion sudo chmod u+x /usr/bin/azion + - name: Create .env file + run: | + echo "NUXT_ENV_BUTTER_API_TOKEN=${{ secrets.NUXT_ENV_BUTTER_API_TOKEN }}" >> .env + - name: Azion Action Deploy run: | azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} diff --git a/templates/nuxt/nuxt-starter-buttercms/package-lock.json b/templates/nuxt/nuxt-starter-buttercms/package-lock.json index f0ad2916..f95737bf 100644 --- a/templates/nuxt/nuxt-starter-buttercms/package-lock.json +++ b/templates/nuxt/nuxt-starter-buttercms/package-lock.json @@ -5,6 +5,7 @@ "packages": { "": { "dependencies": { + "azion": "latest", "buttercms": "^1.2.15", "tiny-slider": "^2.9.4", "vue": "^3.2.47" @@ -2809,6 +2810,23 @@ "follow-redirects": "^1.14.0" } }, + "node_modules/azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion", + "azlib": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -3054,10 +3072,9 @@ ] }, "node_modules/chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true, + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -6825,6 +6842,14 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/protocols": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz", @@ -11221,6 +11246,15 @@ "follow-redirects": "^1.14.0" } }, + "azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "requires": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -11385,10 +11419,9 @@ "dev": true }, "chalk": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.2.0.tgz", - "integrity": "sha512-ree3Gqw/nazQAPuJJEy+avdl7QfZMcUvmHIKgEZkGL+xOBzRvup5Hxo6LHuMceSxOabuJLJm5Yp/92R9eMmMvA==", - "dev": true + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==" }, "chardet": { "version": "0.7.0", @@ -14178,6 +14211,11 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + }, "protocols": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz", diff --git a/templates/nuxt/nuxt-starter-buttercms/package.json b/templates/nuxt/nuxt-starter-buttercms/package.json index 90675882..a4a8bc71 100644 --- a/templates/nuxt/nuxt-starter-buttercms/package.json +++ b/templates/nuxt/nuxt-starter-buttercms/package.json @@ -10,6 +10,7 @@ "nuxt": "^3" }, "dependencies": { + "azion": "latest", "buttercms": "^1.2.15", "tiny-slider": "^2.9.4", "vue": "^3.2.47" From 0222147955a698dcffc1be72c4b312c65471bcd6 Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Fri, 10 Jan 2025 15:11:38 -0300 Subject: [PATCH 4/5] fix(templates/butter): Update workflow and dependencies for react-starter-buttercms --- .../.github/workflows/main.yml | 4 ++ .../react-starter-buttercms/package-lock.json | 58 +++++++++++++++++++ .../react-starter-buttercms/package.json | 1 + 3 files changed, 63 insertions(+) diff --git a/templates/react/react-starter-buttercms/.github/workflows/main.yml b/templates/react/react-starter-buttercms/.github/workflows/main.yml index 9e2dbb20..05f76e2d 100644 --- a/templates/react/react-starter-buttercms/.github/workflows/main.yml +++ b/templates/react/react-starter-buttercms/.github/workflows/main.yml @@ -33,6 +33,10 @@ jobs: sudo mv azionlinux /usr/bin/azion sudo chmod u+x /usr/bin/azion + - name: Create .env file + run: | + echo "REACT_APP_BUTTER_CMS_API_KEY=${{ secrets.REACT_APP_BUTTER_CMS_API_KEY }}" >> .env + - name: Azion Action Deploy run: | azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} diff --git a/templates/react/react-starter-buttercms/package-lock.json b/templates/react/react-starter-buttercms/package-lock.json index ece7f883..3422e46b 100644 --- a/templates/react/react-starter-buttercms/package-lock.json +++ b/templates/react/react-starter-buttercms/package-lock.json @@ -11,6 +11,7 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.4.3", + "azion": "latest", "buttercms": "^1.2.15", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -4613,6 +4614,34 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==" }, + "node_modules/azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion", + "azlib": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/azion/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/babel-jest": { "version": "27.5.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.0.tgz", @@ -13336,6 +13365,14 @@ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/promise": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz", @@ -19978,6 +20015,22 @@ } } }, + "azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "requires": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "dependencies": { + "chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==" + } + } + }, "babel-jest": { "version": "27.5.0", "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.5.0.tgz", @@ -26147,6 +26200,11 @@ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + }, "promise": { "version": "8.1.0", "resolved": "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz", diff --git a/templates/react/react-starter-buttercms/package.json b/templates/react/react-starter-buttercms/package.json index 721cc51d..b8876fd5 100644 --- a/templates/react/react-starter-buttercms/package.json +++ b/templates/react/react-starter-buttercms/package.json @@ -6,6 +6,7 @@ "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^14.4.3", + "azion": "latest", "buttercms": "^1.2.15", "react": "^18.2.0", "react-dom": "^18.2.0", From db7b1fde6b81d2c25b44e2fbaa0cbb3d5ff72b22 Mon Sep 17 00:00:00 2001 From: Pablo Diehl Date: Fri, 10 Jan 2025 15:13:08 -0300 Subject: [PATCH 5/5] fix(templates/butter): Update workflow and dependencies for vue-starter-buttercms --- .../.github/workflows/main.yml | 4 ++ .../vue-starter-buttercms/package-lock.json | 58 +++++++++++++++++++ .../vue/vue-starter-buttercms/package.json | 1 + 3 files changed, 63 insertions(+) diff --git a/templates/vue/vue-starter-buttercms/.github/workflows/main.yml b/templates/vue/vue-starter-buttercms/.github/workflows/main.yml index 9e2dbb20..8fa07291 100644 --- a/templates/vue/vue-starter-buttercms/.github/workflows/main.yml +++ b/templates/vue/vue-starter-buttercms/.github/workflows/main.yml @@ -33,6 +33,10 @@ jobs: sudo mv azionlinux /usr/bin/azion sudo chmod u+x /usr/bin/azion + - name: Create .env file + run: | + echo "VITE_APP_BUTTER_CMS_API_KEY=${{ secrets.VITE_APP_BUTTER_CMS_API_KEY }}" >> .env + - name: Azion Action Deploy run: | azion -t ${{ secrets.AZION_PERSONAL_TOKEN }} diff --git a/templates/vue/vue-starter-buttercms/package-lock.json b/templates/vue/vue-starter-buttercms/package-lock.json index 1f5bf66e..728ef4d1 100644 --- a/templates/vue/vue-starter-buttercms/package-lock.json +++ b/templates/vue/vue-starter-buttercms/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "dependencies": { "@vitejs/plugin-vue": "^4.0.0", + "azion": "latest", "buttercms": "^1.2.15", "tiny-slider": "^2.9.4", "vite": "^4.0.4", @@ -809,6 +810,34 @@ "follow-redirects": "^1.14.0" } }, + "node_modules/azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "hasInstallScript": true, + "dependencies": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "bin": { + "azion": "bin/azion", + "azlib": "bin/azion" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/azion/node_modules/chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -1837,6 +1866,14 @@ "node": ">=6.0.0" } }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -2771,6 +2808,22 @@ "follow-redirects": "^1.14.0" } }, + "azion": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/azion/-/azion-1.11.1.tgz", + "integrity": "sha512-NLGE/yFGCKLJKGZtTfUANPbcVhjhL7LZdvyDj6mwv9luKFL34NWFPRU4vzEFs0qm4G100O0l2ARfd5WAmtVtzQ==", + "requires": { + "chalk": "^5.3.0", + "progress": "^2.0.3" + }, + "dependencies": { + "chalk": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", + "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==" + } + } + }, "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -3516,6 +3569,11 @@ "fast-diff": "^1.1.2" } }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" + }, "punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", diff --git a/templates/vue/vue-starter-buttercms/package.json b/templates/vue/vue-starter-buttercms/package.json index 42b253b7..7f6e7b7e 100644 --- a/templates/vue/vue-starter-buttercms/package.json +++ b/templates/vue/vue-starter-buttercms/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@vitejs/plugin-vue": "^4.0.0", + "azion": "latest", "buttercms": "^1.2.15", "tiny-slider": "^2.9.4", "vite": "^4.0.4",