From 230c045ae32c32be2bbd883949426ae4c4dbf160 Mon Sep 17 00:00:00 2001 From: Taavetti Kukkonen Date: Wed, 24 Jan 2024 12:22:07 +0200 Subject: [PATCH] chore: use npm publish task --- .github/workflows/publish-server.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-server.yaml b/.github/workflows/publish-server.yaml index 674ef93..23c8efb 100644 --- a/.github/workflows/publish-server.yaml +++ b/.github/workflows/publish-server.yaml @@ -18,10 +18,10 @@ jobs: - uses: actions/setup-node@v3 with: node-version: '20.x' - registry-url: 'https://npm.pkg.github.com' - run: cat ../../.npmrc - run: cat ../../.npmrc >> .npmrc - run: npm ci && npm run build - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + registry: "https://npm.pkg.github.com" \ No newline at end of file