From 91890125ed8683e286473ec292f0e7c78a593318 Mon Sep 17 00:00:00 2001 From: William Kelley Date: Fri, 30 Jul 2021 11:11:19 -0400 Subject: [PATCH] chore: fix build failure about env.INPUT_TOKEN - source https://github.com/prenda-school/prenda-spark/runs/3203116665?check_suite_focus=true - see https://github.com/JS-DevTools/npm-publish/issues/15 --- .github/workflows/npm-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a1d1183be..3097a0631 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,6 +14,8 @@ jobs: - run: npm ci - run: npx nx run spark:test - run: npx nx run spark-e2e:e2e + # stories & tests depend on @prenda/spark-icons, but aren't included in build + # without this, Nx prevents build and requires icons be built first (circular dep) - run: rm -rf ./libs/spark/stories ./libs/spark/test - run: npx nx run spark:build - uses: JS-DevTools/npm-publish@v1 @@ -45,6 +47,9 @@ jobs: SLACK_TITLE: '@prenda/spark' SLACK_MESSAGE: Failure - run: npm run build:icons + # see https://github.com/JS-DevTools/npm-publish/issues/15 + env: + INPUT_TOKEN: '' - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.NPM_TOKEN }}