From de212d523e73698aebd7a14898cbb88bfe7ebb6b Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Thu, 11 Jun 2020 20:38:21 -0500 Subject: [PATCH] fix: add plugin sharp config option --- .github/workflows/prerelease.yml | 34 ------------------- packages/gatsby-theme-carbon/gatsby-config.js | 2 ++ 2 files changed, 2 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml deleted file mode 100644 index b1ca394cb..000000000 --- a/.github/workflows/prerelease.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: prerelease - -on: - push: - branches: - - master - -jobs: - release: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - run: git fetch --prune --unshallow - - name: Use Node.js 12.x - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - - name: node_modules Cache - uses: actions/cache@v1 - with: - path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install - run: yarn install --pure-lockfile - - name: Publish - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc - yarn lerna publish --canary --dist-tag next --no-push --yes diff --git a/packages/gatsby-theme-carbon/gatsby-config.js b/packages/gatsby-theme-carbon/gatsby-config.js index 493dba44f..82e6d1cc0 100644 --- a/packages/gatsby-theme-carbon/gatsby-config.js +++ b/packages/gatsby-theme-carbon/gatsby-config.js @@ -21,6 +21,7 @@ module.exports = (themeOptions) => { mediumAccount = '', gatsbyRemarkPlugins = [], remarkPlugins = [], + gatsbyPluginSharpOptions = {}, } = themeOptions; const optionalPlugins = []; @@ -46,6 +47,7 @@ module.exports = (themeOptions) => { quality: imageQuality, withWebp, pngCompressionSpeed, + ...gatsbyPluginSharpOptions, }, }, { resolve: `gatsby-remark-responsive-iframe` },