From 02196bea05944188767cb76fdbebdf4f8232852b Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Mon, 30 Sep 2024 13:01:28 +0200 Subject: [PATCH] fix(release): use yarn auth instead of npm --- .github/workflows/release.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1d87379..7f2dcaf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,9 +27,10 @@ jobs: run: | yarn tsc yarn build - - name: Configure npm for publishing + - name: Configure yarn for publishing run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc + yarn config set -H 'npmAuthToken' "${{secrets.NPM_AUTH_TOKEN}}" + # yarn config set -H 'npmRegistries["//npm.pkg.github.com"].npmAuthToken' "${{secrets.GITHUB_TOKEN}}" - name: Release to GitHub releases run: errout=$(mktemp); gh release create $(cat package.json | jq -r .version) -R $GITHUB_REPOSITORY -t $(cat package.json | jq -r .version) --target $GITHUB_REF 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi env: