From dfa26120d994b98f861321a59e7466da28b70486 Mon Sep 17 00:00:00 2001 From: Cody Olsen <81981+stipsan@users.noreply.github.com> Date: Wed, 21 Dec 2022 11:37:02 +0100 Subject: [PATCH] fix: vertically center unsplash logo --- .github/workflows/main.yml | 15 +++------------ package.json | 13 +++---------- src/components/Icon.tsx | 1 + 3 files changed, 7 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c1ec883..7e77a8d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,15 +38,6 @@ concurrency: cancel-in-progress: true jobs: - log-the-inputs: - name: Log inputs - runs-on: ubuntu-latest - steps: - - run: | - echo "Inputs: $INPUTS" - env: - INPUTS: ${{ toJSON(inputs) }} - build: runs-on: ubuntu-latest name: Lint & Build @@ -58,10 +49,10 @@ jobs: node-version: lts/* - run: npm ci # Linting can be skipped - - run: npm run lint --if-present + - run: npm run lint if: github.event.inputs.test != 'false' # But not the build script, as semantic-release will crash if this command fails so it makes sense to test it early - - run: npm run prepublishOnly --if-present + - run: npm run prepublishOnly test: needs: build @@ -97,7 +88,7 @@ jobs: cache: npm node-version: ${{ matrix.node }} - run: npm i - - run: npm test --if-present + - run: npm test release: needs: [build, test] diff --git a/package.json b/package.json index b1f53cf..0902e8f 100644 --- a/package.json +++ b/package.json @@ -91,8 +91,8 @@ "prettier": "^2.7.1", "prettier-plugin-packagejson": "^2.3.0", "prompt": "^1.3.0", - "react": "^18", - "react-dom": "^18", + "react": "^18.2.0", + "react-dom": "^18.2.0", "replace-in-file": "^6.3.5", "rimraf": "^3.0.2", "sanity": "^3.0.0", @@ -115,12 +115,5 @@ "publishConfig": { "access": "public" }, - "sanityExchangeUrl": "https://www.sanity.io/plugins/sanity-plugin-asset-source-unsplash", - "sanityPlugin": { - "verifyPackage": { - "babelConfig": false, - "scripts": false, - "parcel": false - } - } + "sanityExchangeUrl": "https://www.sanity.io/plugins/sanity-plugin-asset-source-unsplash" } diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index 6d68711..d8e2361 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -3,6 +3,7 @@ import styled from 'styled-components' const Svg = styled.svg` transform: scale(0.8); + transform-origin: top; ` export default function UnsplashIcon() {