From 3be87fd5a80f2d64b87c18881775726932885fde Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 15 Jan 2025 14:40:56 -0500 Subject: [PATCH 1/4] Version updated 1.4.7 => 1.5.0 --- bootstrap.php | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index e0fe4e4c..c1889bcd 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -5,7 +5,7 @@ use function NewfoldLabs\WP\ModuleLoader\register; -define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.4.7' ); +define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.5.0' ); if ( function_exists( 'is_admin' ) && is_admin() ) { $old_woocommerce_module_version = get_option( 'nfd_ecommerce_module_version' ); diff --git a/package-lock.json b/package-lock.json index 9c78c4a9..344f4add 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold/wp-module-ecommerce", - "version": "1.4.7", + "version": "1.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@newfold/wp-module-ecommerce", - "version": "1.4.7", + "version": "1.5.0", "license": "GPL-2.0-or-later", "dependencies": { "@faizaanceg/pandora": "^1.1.1", diff --git a/package.json b/package.json index 20f189f8..618d9e21 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@newfold/wp-module-ecommerce", "description": "Brand Agnostic eCommerce Experience", "license": "GPL-2.0-or-later", - "version": "1.4.7", + "version": "1.5.0", "main": "build/index.js", "files": [ "build/", From cddd806a7d935150c271e43e84b1ac3fdd0d34d9 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 15 Jan 2025 14:56:08 -0500 Subject: [PATCH 2/4] update npm publish workflow --- .github/workflows/npm-publish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 4f05565a..f11cad13 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,7 +18,12 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm publish --access public + scope: '@newfold' + + - name: Install Dependencies + run: npm i && npm run build + + - name: Publish + run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} From 8c6e3824faed58ae57264391dc4881a42b4e746a Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 15 Jan 2025 16:11:54 -0500 Subject: [PATCH 3/4] fix migration nameserver test - remove unnecessary wait commands --- tests/cypress/integration/Home/migration.cy.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/cypress/integration/Home/migration.cy.js b/tests/cypress/integration/Home/migration.cy.js index c9a64062..4328e0e8 100644 --- a/tests/cypress/integration/Home/migration.cy.js +++ b/tests/cypress/integration/Home/migration.cy.js @@ -61,11 +61,9 @@ describe( .should( 'exist' ) .click(); EventsAPI( APIList.update_nameserver, pluginId ); - cy.wait( 1000 ); cy.get( '.help-container', { timeout: customCommandTimeout, } ).should( 'be.visible' ); - cy.wait( 1000 ); cy.get( 'div.helpcenter-question-block' ).then( ( $el ) => { if ( $el.length ) { cy.wrap( $el ).children().last().invoke( 'text' ).then( ( text ) => { From b19620a5fabe190bbe7e3d614e32d66247ad5522 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 15 Jan 2025 16:47:50 -0500 Subject: [PATCH 4/4] tweak workflow with `npm ci` --- .github/workflows/npm-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f11cad13..f167c9e1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -21,7 +21,7 @@ jobs: scope: '@newfold' - name: Install Dependencies - run: npm i && npm run build + run: npm ci && npm run build - name: Publish run: npm publish