From 94b57ac333e35be8af4fc02e83c0454f63a2312f Mon Sep 17 00:00:00 2001 From: Abdelrahman Ashraf Date: Thu, 14 Sep 2023 17:00:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20debug=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6248c4e..0d1c55f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -85,15 +85,14 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }} - - name: Remove existing .npmrc - run: rm -f "$HOME/.npmrc" - - - name: ⎔ Setup Node@18 for Github Packages - uses: actions/setup-node@v3 - with: - cache: 'pnpm' - node-version: 18 - registry-url: 'https://npm.pkg.github.com' + - name: Creating .npmrc for Github Packages + run: | + Remove existing .npmrc + rm -f "$HOME/.npmrc" + + # For Github Packages + echo "//npm.pkg.github.com/@lottiefiles/:_authToken=${{ secrets.NPM_TOKEN }}" >> "$HOME/.npmrc" + echo "always-auth=true" >> "$HOME/.npmrc" - name: 🚀 Release to Github Packages uses: changesets/action@v1