cloudcommerce 0.0.20 → 0.0.23

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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.23](https://github.com/ecomplus/cloud-commerce/compare/v0.0.22...v0.0.23) (2022-07-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * GH Action also install functions dependencies to deploy ([9321030](https://github.com/ecomplus/cloud-commerce/commit/93210305453b10174a0c586e70614f5d869e46ab))
11
+
12
+ ### [0.0.22](https://github.com/ecomplus/cloud-commerce/compare/v0.0.21...v0.0.22) (2022-07-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **cli:** Run `firebase` instead of `npx firebase-tools` ([f0f4be5](https://github.com/ecomplus/cloud-commerce/commit/f0f4be5f55fa6552dc9ed142b253f8119defb296))
18
+ * **gh-action:** Install `firebase-tools` with specific semver ([51e175f](https://github.com/ecomplus/cloud-commerce/commit/51e175f5c4227badcb868a9ee2bdaaa09b3b0017))
19
+
20
+ ### [0.0.21](https://github.com/ecomplus/cloud-commerce/compare/v0.0.20...v0.0.21) (2022-07-09)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * **deps:** Update dependency firebase-admin to v11 ([#27](https://github.com/ecomplus/cloud-commerce/issues/27)) ([a258b84](https://github.com/ecomplus/cloud-commerce/commit/a258b84cb26415063b7807a42b8eb937d2ff8452))
26
+ * **gh-action:** Checks `github.event_name` instead of branch to decide live or preview ([b0affe6](https://github.com/ecomplus/cloud-commerce/commit/b0affe6069e23bc57b4b9ce5ff86992430f0f52e))
27
+
5
28
  ### [0.0.20](https://github.com/ecomplus/cloud-commerce/compare/v0.0.19...v0.0.20) (2022-06-29)
6
29
 
7
30
  ### [0.0.19](https://github.com/ecomplus/cloud-commerce/compare/v0.0.18...v0.0.19) (2022-06-29)
package/action.yml CHANGED
@@ -14,24 +14,26 @@ outputs: {}
14
14
  runs:
15
15
  using: "composite"
16
16
  steps:
17
- - name: Get current branch
18
- id: get-branch
19
- env:
20
- GITHUB_REF: ${{ github.ref }}
21
- run: echo "::set-output name=name::${GITHUB_REF#refs/heads/}"
22
-
23
- - if: steps.get-branch.outputs.name == main
24
- uses: actions/setup-node@v3
17
+ - uses: actions/setup-node@v3
25
18
  with:
26
19
  node-version: 16
27
20
  cache: 'npm'
28
- # cache-dependency-path: ${{ github.action_path }}/scripts/store/package-lock.json
29
21
 
30
- - if: steps.get-branch.outputs.name == main
22
+ - if: github.event_name == 'push'
31
23
  shell: bash
32
- run: npm i -g firebase-tools
24
+ run: npm i --location=global firebase-tools@^11.2.1
25
+
26
+ - shell: bash
27
+ run: npm ci --only=production
33
28
 
34
- - if: steps.get-branch.outputs.name == main
29
+ - shell: bash
30
+ working-directory: functions
31
+ run: npm ci --only=production --no-optional
32
+
33
+ - shell: bash
34
+ run: npm run build
35
+
36
+ - if: github.event_name == 'push'
35
37
  name: Deploy to Firebase live
36
38
  shell: bash
37
39
  env:
@@ -39,9 +41,9 @@ runs:
39
41
  run: |
40
42
  export GAC_FILENAME=".gac-$RANDOM.json";
41
43
  echo $FIREBASE_SERVICE_ACCOUNT > $GAC_FILENAME;
42
- GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npx firebase deploy;
43
-
44
- - if: steps.get-branch.outputs.name != main
44
+ GOOGLE_APPLICATION_CREDENTIALS=$GAC_FILENAME npm run deploy;
45
+
46
+ - if: github.event_name == 'pull_request'
45
47
  name: Deploy Firebase Hosting PR preview
46
48
  uses: FirebaseExtended/action-hosting-deploy@v0
47
49
  with:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
6
6
  "main": "packages/api/lib/index.js",
7
7
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
@@ -19,22 +19,22 @@
19
19
  "@commitlint/cli": "^17.0.3",
20
20
  "@commitlint/config-conventional": "^17.0.3",
21
21
  "@commitlint/rules": "^17.0.0",
22
- "@types/node": "^17.0.45",
23
- "@typescript-eslint/eslint-plugin": "^5.30.0",
24
- "@typescript-eslint/parser": "^5.30.0",
25
- "esbuild": "^0.14.47",
26
- "eslint": "^8.18.0",
22
+ "@types/node": "^18.0.3",
23
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
24
+ "@typescript-eslint/parser": "^5.30.5",
25
+ "esbuild": "^0.14.48",
26
+ "eslint": "^8.19.0",
27
27
  "eslint-config-airbnb-base": "^15.0.0",
28
28
  "eslint-plugin-import": "^2.26.0",
29
- "eslint-plugin-vue": "^9.1.1",
29
+ "eslint-plugin-vue": "^9.2.0",
30
30
  "husky": "^8.0.1",
31
31
  "node-fetch": "^3.2.6",
32
32
  "standard-version": "^9.5.0",
33
33
  "turbo": "^1.3.1",
34
34
  "typescript": "^4.7.4",
35
- "vite": "^2.9.13",
36
- "vitest": "^0.15.2",
37
- "zx": "^7.0.3"
35
+ "vite": "^2.9.14",
36
+ "vitest": "^0.17.1",
37
+ "zx": "^7.0.7"
38
38
  },
39
39
  "scripts": {
40
40
  "postinstall": "husky install",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "functions/dist/index.js",
7
7
  "repository": {
@@ -14,7 +14,7 @@ export default async () => {
14
14
  }
15
15
  return opts;
16
16
  }, '');
17
- const $firebase = async (cmd) => $`npx firebase-tools ${cmd}${options}`;
17
+ const $firebase = async (cmd) => $`firebase ${cmd}${options}`;
18
18
  if (argv._.includes('serve')) {
19
19
  return $firebase('emulators:start');
20
20
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -22,6 +22,6 @@
22
22
  "build": "sh ../../scripts/build-lib.sh"
23
23
  },
24
24
  "dependencies": {
25
- "zx": "^7.0.3"
25
+ "zx": "^7.0.7"
26
26
  }
27
27
  }
@@ -15,7 +15,7 @@ export default async () => {
15
15
  }
16
16
  return opts;
17
17
  }, '');
18
- const $firebase = async (cmd: string) => $`npx firebase-tools ${cmd}${options}`;
18
+ const $firebase = async (cmd: string) => $`firebase ${cmd}${options}`;
19
19
 
20
20
  if (argv._.includes('serve')) {
21
21
  return $firebase('emulators:start');
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -20,8 +20,8 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@cloudcommerce/api": "workspace:*",
23
- "firebase-admin": "^10.3.0",
24
- "firebase-functions": "^3.21.2"
23
+ "firebase-admin": "^11.0.0",
24
+ "firebase-functions": "^3.22.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@firebase/app-types": "^0.7.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.0.20",
4
+ "version": "0.0.23",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
@@ -20,6 +20,6 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@cloudcommerce/api": "workspace:*",
23
- "astro": "1.0.0-beta.46"
23
+ "astro": "1.0.0-beta.63"
24
24
  }
25
25
  }