From 21dc285cf8e9a2853a9f42378b0b875a1c848ba8 Mon Sep 17 00:00:00 2001 From: madura Date: Wed, 8 Sep 2021 11:54:16 +0530 Subject: [PATCH] update npm publish workflow file --- .github/workflows/npm-publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c9fc93461..9115f8193 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,6 +13,17 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 + + - run: 'rm .npmrc' + shell: bash + + - run: 'echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> .npmrc' + shell: bash + env: + NPM_TOKEN: ${{ secrets.NPM_PKG_TOKEN }} + - run: 'echo "@shoutout-labs:registry=https://npm.pkg.github.com/shoutout-labs" >> .npmrc' + shell: bash + - run: npm i - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - run: npm run lint-lite @@ -27,6 +38,17 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com + + - run: 'rm .npmrc' + shell: bash + + - run: 'echo "//npm.pkg.github.com/:_authToken=$NPM_TOKEN" >> .npmrc' + shell: bash + env: + NPM_TOKEN: ${{ secrets.NPM_PKG_TOKEN }} + - run: 'echo "@shoutout-labs:registry=https://npm.pkg.github.com/shoutout-labs" >> .npmrc' + shell: bash + - run: npm i - run: npm publish env: