diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47effe9..e27d117 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,6 +44,26 @@ jobs: - name: Authenticate with private NPM package run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_READ }}" > ~/.npmrc + - name: Ensure there is no .nprmc with tokens + run: cat ~/.npmrc + + - name: Ensure there is no .nprmc with tokens + run: rm -rf ~/.npmrc + + - name: Ensure there is no .nprmc with tokens + uses: GuillaumeFalourd/assert-command-line-output@v2.2 + with: + command_line: cat ~/.npmrc + assert_file_path: discard.txt + expected_result: PASSED + + - name: Ensure there is no .nprmc with tokens + uses: GuillaumeFalourd/assert-command-line-output@v2.2 + with: + command_line: cat ~/.npmrc + assert_file_path: ${{ github.workspace }}/test-resources/exporter-output-files.txt + expected_result: PASSED + - name: Install dependencies run: npm i diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 0b6ba6d..a93a24c 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -32,6 +32,19 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- + - name: Ensure there is no .nprmc with tokens + run: cat ~/.npmrc + + - name: Ensure there is no .nprmc with tokens + run: rm -rf ~/.npmrc + + - name: Ensure there is no .nprmc with tokens + uses: GuillaumeFalourd/assert-command-line-output@v2.2 + with: + command_line: cat ~/.npmrc + assert_file_path: discard.txt + expected_result: PASSED + - name: Install Supernova CLI dependency run: npm install --g @supernovaio/cli