From 14734dc990a378216064f45487c4be4afec47442 Mon Sep 17 00:00:00 2001 From: sacr3dc0w Date: Mon, 9 Sep 2024 20:05:16 -0700 Subject: [PATCH] initial update --- .../automatic_deployment_production.yml | 16 +++++---------- .../poll_for_changed_configuration.yml | 16 +++++---------- .github/workflows/pull_request_review.yml | 20 +++++++------------ 3 files changed, 17 insertions(+), 35 deletions(-) diff --git a/.github/workflow-examples/automatic_deployment_production.yml b/.github/workflow-examples/automatic_deployment_production.yml index 852c8778e8..ba377f9db4 100644 --- a/.github/workflow-examples/automatic_deployment_production.yml +++ b/.github/workflow-examples/automatic_deployment_production.yml @@ -12,24 +12,18 @@ jobs: strategy: matrix: - node: [16.x] + node: [18.x] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v2-beta + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - - name: npm cache - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install Stencil CLI Dependency run: npm install -g @bigcommerce/stencil-cli diff --git a/.github/workflow-examples/poll_for_changed_configuration.yml b/.github/workflow-examples/poll_for_changed_configuration.yml index a44279e80e..616656c106 100644 --- a/.github/workflow-examples/poll_for_changed_configuration.yml +++ b/.github/workflow-examples/poll_for_changed_configuration.yml @@ -17,24 +17,18 @@ jobs: strategy: matrix: - node: [16.x] + node: [18.x] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v2-beta + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - - name: npm cache - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install Stencil CLI Dependency run: npm install -g @bigcommerce/stencil-cli diff --git a/.github/workflows/pull_request_review.yml b/.github/workflows/pull_request_review.yml index 778f4de818..9756cb3eca 100644 --- a/.github/workflows/pull_request_review.yml +++ b/.github/workflows/pull_request_review.yml @@ -17,24 +17,18 @@ jobs: strategy: matrix: - node: [16.x] + node: [18.x] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v2-beta + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - - - name: npm cache - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install Stencil CLI Dependency run: npm install -g @bigcommerce/stencil-cli @@ -49,13 +43,13 @@ jobs: run: npx stencil bundle --name bundle - name: Upload bundled theme - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Bundled Theme path: bundle.zip - name: Upload bundle analysis - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Webpack Analysis path: assets/dist/report.html