From 503cd102bb2d446d074b310f58e57b08f4826287 Mon Sep 17 00:00:00 2001 From: Jozef Harag <32jojo32@gmail.com> Date: Fri, 3 May 2024 15:28:19 +0200 Subject: [PATCH] feat: publish to github registry --- .github/workflows/release.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6698277..87c2cde 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,13 +28,8 @@ jobs: - name: Install pnpm run: npm i pnpm@9 -g - - name: Setup registry - working-directory: . - run: | - cat << EOF > "$HOME/.npmrc" - //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} - @smartlook:registry=https://npm.pkg.github.com - EOF + - name: Setup npmrc + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - name: Setup pnpm cache directory run: pnpm config set store-dir $PNPM_CACHE_FOLDER @@ -51,4 +46,3 @@ jobs: publish: pnpm ci:publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file