[TASK] use new hubspot-cms-lib version, update other npm dependencies #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy theme to Hubspot | |
on: | |
push: | |
branches: | |
- master | |
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: 16 | |
cache: 'npm' | |
- run: npm ci | |
- name: Upload theme to CI account | |
env: | |
HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_CI_PORTAL_ID }} | |
HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.HUBSPOT_CI_PERSONAL_ACCESS_KEY }} | |
run: npm run upload -- --themeConfirm=true | |
- name: Marketplace validation | |
env: | |
HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_CI_PORTAL_ID }} | |
HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.HUBSPOT_CI_PERSONAL_ACCESS_KEY }} | |
run: npm run validate -- --themeConfirm=true | |
- name: Lighthouse test | |
env: | |
HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_CI_PORTAL_ID }} | |
HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.HUBSPOT_CI_PERSONAL_ACCESS_KEY }} | |
run: npm run lighthouse -- --themeConfirm=true | |
- name: Upload to main account | |
env: | |
HUBSPOT_PORTAL_ID: ${{ secrets.HUBSPOT_PORTAL_ID }} | |
HUBSPOT_PERSONAL_ACCESS_KEY: ${{ secrets.HUBSPOT_PERSONAL_ACCESS_KEY }} | |
run: npm run upload -- --themeConfirm=true | |
- name: PKG versions | |
run: | | |
node -v | |
npm -v |