Add token to workflow and .npmrc

This commit is contained in:
Daniël van Noord
2021-07-11 12:56:01 +02:00
parent c0e788b143
commit db07ab6c3e
2 changed files with 10 additions and 3 deletions

View File

@@ -3,9 +3,13 @@ on: pull_request
jobs: jobs:
Check_linting_test_and_build: Check_linting_test_and_build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: 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 - name: Install dependencies
run: npm ci run: npm ci
- name: Run ESLint - name: Run ESLint

5
.npmrc
View File

@@ -1 +1,4 @@
@cookiemonsterteam:registry=https://npm.pkg.github.com always-auth=true
registry=https://registry.npmjs.org/
@cookiemonsterteam:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}