From db07ab6c3e051d2960b4a403e05f4a0278fbcba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Sun, 11 Jul 2021 12:56:01 +0200 Subject: [PATCH] Add token to workflow and .npmrc --- .github/workflows/CI.yml | 8 ++++++-- .npmrc | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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