From 9747505b54555a496030459f1c51d3ed58c6d73c Mon Sep 17 00:00:00 2001 From: Suren Poghosyan Date: Sun, 25 Aug 2024 01:16:42 +0400 Subject: [PATCH] [workflow-fix] add proper spacing in release-package.yaml --- .github/workflows/release-package.yaml | 78 +++++++++++++------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release-package.yaml b/.github/workflows/release-package.yaml index ff1f745..5dc605b 100644 --- a/.github/workflows/release-package.yaml +++ b/.github/workflows/release-package.yaml @@ -22,42 +22,42 @@ jobs: - name: Run tests run: npm test -publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Configure npm authentication - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - - - name: Publish to npm - run: npm publish --access public - -publish-gpr: - needs: build - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://npm.pkg.github.com/ - - - name: Configure npm to use GitHub Packages registry - run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GIT_TOKEN }}" > ~/.npmrc - - - name: Publish to GitHub Packages - run: npm publish \ No newline at end of file + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Configure npm authentication + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + + - name: Publish to npm + run: npm publish --access public + + publish-gpr: + needs: build + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com/ + + - name: Configure npm to use GitHub Packages registry + run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GIT_TOKEN }}" > ~/.npmrc + + - name: Publish to GitHub Packages + run: npm publish \ No newline at end of file