diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0fd020a..c974ca0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,8 @@ jobs: with: node-version: 20 registry-url: 'https://registry.npmjs.org' - cache: 'npm' + cache: 'npm' + - name: Download artifact uses: actions/download-artifact@v3 with: @@ -57,6 +58,11 @@ jobs: - name: Unpack artifact run: tar xf artifact.tar.gz + - name: Install dependencies + run: npm i + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Run eslint run: npm run lint @@ -72,6 +78,7 @@ jobs: node-version: 20 registry-url: 'https://registry.npmjs.org' cache: 'npm' + - name: Download artifact uses: actions/download-artifact@v3 with: @@ -80,6 +87,11 @@ jobs: - name: Unpack artifact run: tar xf artifact.tar.gz + - name: Install dependencies + run: npm i + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Run typescript compile run: yarn tsc --noEmit