Skip to content

build(deps-dev): bump eslint from 8.57.0 to 9.10.0 #899

build(deps-dev): bump eslint from 8.57.0 to 9.10.0

build(deps-dev): bump eslint from 8.57.0 to 9.10.0 #899

Workflow file for this run

name: Deploy Theme
on:
pull_request:
push:
jobs:
pre_build:
continue-on-error: true
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v4
with:
concurrent_skipping: "same_content_newer"
paths_ignore: '["CONTRIBUTING.md", "LICENSE", "**/README.md"]'
build:
needs: pre_build
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || needs.pre_build.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Cache Node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test:ci
- run: npm run zip
- run: unzip dist/dawn-advisory-theme.zip -d dist/
- run: rm dist/dawn-advisory-theme.zip
- name: Upload build
uses: actions/upload-artifact@v1
with:
name: dawn-advisory-theme-${{ github.sha }}
path: dist/
deploy:
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Cache Node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run zip
- name: Deploy Ghost theme
uses: TryGhost/[email protected]
with:
api-url: ${{ secrets.GHOST_API_URL }}
api-key: ${{ secrets.GHOST_DEPLOY_THEME_ADMIN_API_KEY }}
exclude: "dist/* node_modules/*"