From cee8009fef410febe7c5e5b792ea223c3018cb09 Mon Sep 17 00:00:00 2001 From: Anurag Gupta Date: Thu, 11 Apr 2024 19:10:40 +0530 Subject: [PATCH] fix: publish script (#302) --- .github/workflows/publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 135a9b43..f96ace41 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 2 - + - name: Use Node.js 20.x uses: actions/setup-node@v3 with: @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: npm install - + - name: Run linters run: npm run lint @@ -53,7 +53,7 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 2 - + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -74,7 +74,7 @@ jobs: - name: Install dependencies run: npm install - + - name: Run tests run: npm run test @@ -137,6 +137,9 @@ jobs: with: node-version: 20.x + - name: Login to npm + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + - name: Install Dependencies run: npm ci @@ -144,7 +147,4 @@ jobs: run: npm run build - name: Publish to npm - run: npm run release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + run: npm run release \ No newline at end of file