diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 47effe9..3a781c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,9 +17,9 @@ jobs: TEST_API_KEY: ${{ secrets.SN_API_KEY_DEV }} TEST_ENVIRONMENT: development TEST_DOC_ENVIRONMENT: Live - TEST_DESIGN_SYSTEM_ID: 3644 - TEST_SYNC_DESIGN_SYSTEM_ID: 3644 - TEST_BRAND_ID: acf822d2-c315-4897-b875-d5b00654b057 + TEST_DESIGN_SYSTEM_ID: 3646 + TEST_SYNC_DESIGN_SYSTEM_ID: 3646 + TEST_BRAND_ID: c6c7a475-164f-4a27-a273-c7f8b12a726e steps: - uses: actions/checkout@v3 @@ -41,6 +41,9 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- + - name: Build local exporter + run: cd ${{ github.workspace }}/test-resources/exporter && npm i && npm run build && cd ${{ github.workspace }} + - name: Authenticate with private NPM package run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_READ }}" > ~/.npmrc diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 0b6ba6d..1e973f5 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -31,7 +31,14 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- - + + - 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/discard.txt + expected_result: PASSED + - name: Install Supernova CLI dependency run: npm install --g @supernovaio/cli diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b2c1629..ab509eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: name: Install CLI @PROD +name: Install CLI @PROD on: # push: diff --git a/test-resources/discard.txt b/test-resources/discard.txt new file mode 100644 index 0000000..fba6a98 --- /dev/null +++ b/test-resources/discard.txt @@ -0,0 +1 @@ +cat: /home/runner/.npmrc: No such file or directory