diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 079e500..3a50672 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,9 +11,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v3 - - name: Setup Node.js v${{ matrix.node }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0382e83..ba65738 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: Run tests -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + types: [opened, edited, reopened, synchronize] jobs: @@ -12,9 +17,9 @@ jobs: matrix: node: [18, 20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Node.js v${{ matrix.node }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} cache: 'npm' diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml deleted file mode 100644 index 781756d..0000000 --- a/.github/workflows/upload.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy theme to Hubspot - -on: - push: - branches: - - matseriks - -jobs: - deploy: - name: Upload and publish theme to main account - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v3 - - name: Setup Node.js v${{ matrix.node }} - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: 'npm' - - run: npm ci - - - name: Upload to production account - env: - HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_PORTAL_ID }} - HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.HUBSPOT_PERSONAL_ACCESS_KEY }} - run: npm run upload - - - name: PKG versions - run: | - node -v - npm -v diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 5cc214b..b3b949a 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,7 +2,7 @@ name: Validate theme on: pull_request: - types: [opened, reopened] + types: [opened, edited, reopened, synchronize] jobs: validate: @@ -10,9 +10,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 30 steps: - - uses: actions/checkout@v3 - - name: Setup Node.js v${{ matrix.node }} - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 20 cache: 'npm'