diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6ba928d..fa58373 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,9 +3,13 @@ on: pull_request jobs: Check_linting_test_and_build: runs-on: ubuntu-latest + env: + NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - name: Check out repository code - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 - name: Install dependencies run: npm ci - name: Run ESLint diff --git a/.npmrc b/.npmrc index 3c583a8..5db20f4 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,4 @@ -@cookiemonsterteam:registry=https://npm.pkg.github.com \ No newline at end of file +always-auth=true +registry=https://registry.npmjs.org/ +@cookiemonsterteam:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${NPM_TOKEN} \ No newline at end of file