From 9f3165ed60ac63dfcb884c04aabcdca22670bd29 Mon Sep 17 00:00:00 2001 From: Patrick McLaughlin Date: Mon, 18 Apr 2022 15:16:49 -0400 Subject: [PATCH] fix: put .npmrc at default location for release This file should be respected by `semantic-release` according to their documentation. See: https://github.com/semantic-release/semantic-release/blob/8fda7fd423d24e7b425fbee83790f49dd0478e2d/docs/support/FAQ.md#can-i-use-npmrc-options --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f418efaa..8885501f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,13 @@ jobs: - name: Test run: npm test + # DISCUSS: Use `jq` or just a small node script to create/modify `.npmrc` in case + # one gets added in the future + - name: Prepare Release + run: mv .npmrc-release .npmrc + - name: Release - run: npx --userconfig .npmrc-release multi-semantic-release + run: npx multi-semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}