From 3f5ada3a436af9ab31e223c3d2b3c039ceec8aa7 Mon Sep 17 00:00:00 2001 From: Michael Mior Date: Tue, 17 Jan 2023 08:03:59 -0500 Subject: [PATCH] Try Lost Pixel --- .github/workflows/vrt.yml | 27 +++++++++++++++++++++++++++ lostpixel.config.js | 7 +++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/vrt.yml create mode 100644 lostpixel.config.js diff --git a/.github/workflows/vrt.yml b/.github/workflows/vrt.yml new file mode 100644 index 000000000..073b4a6aa --- /dev/null +++ b/.github/workflows/vrt.yml @@ -0,0 +1,27 @@ +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + name: Lost Pixel + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: 'yarn' + + - name: Install dependencies + run: yarn install + + - name: Build next + run: yarn build-storybook + + - name: Lost Pixel + uses: lost-pixel/lost-pixel@next + env: + LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }} diff --git a/lostpixel.config.js b/lostpixel.config.js new file mode 100644 index 000000000..1352c53ac --- /dev/null +++ b/lostpixel.config.js @@ -0,0 +1,7 @@ +module.exports = { + storybookShots: { + storybookUrl: './storybook-static', + }, + lostPixelProjectId: 'cld08suck0455ke0vt3werogj', + apiKey: process.env.LOST_PIXEL_API_KEY, +};