From cba4835de20492a128d71471f32c129932b3b445 Mon Sep 17 00:00:00 2001 From: Colby Fayock Date: Thu, 25 Mar 2021 16:52:53 -0400 Subject: [PATCH] Create updates.yml --- .github/workflows/updates.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/updates.yml diff --git a/.github/workflows/updates.yml b/.github/workflows/updates.yml new file mode 100644 index 0000000..e904a98 --- /dev/null +++ b/.github/workflows/updates.yml @@ -0,0 +1,37 @@ +name: Updates + +on: + schedule: + - cron: "0 12 * * *" + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js 12.x + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - run: npm install + + - run: npm install -g npm-check-updates + + - name: Check for Updates + run: ncu -u + + - name: Install Updates + run: npm install + + - run: npx eyes-storybook + env: + APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }} + + - uses: mikeal/publish-to-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH_NAME: 'master'