Skip to content

Commit

Permalink
FIX: build workflow missing auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Jul 30, 2021
1 parent cb9d9a0 commit 8572e95
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ name: build
on: [push, pull_request]

jobs:
build:
build:
runs-on: ubuntu-latest

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Using Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Update npm version to latest
run: npm install -g npm@latest # stop showing warnings about the lockfile
- name: Install dependencies
run: npm install
- name: Compile
run: npm run build
- name: Run tests
run: npm run test
steps:
- uses: actions/checkout@v2
- name: Using Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Update npm version to latest
run: npm install -g npm@latest # stop showing warnings about the lockfile
- name: Install dependencies
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm install
env:
NODE_AUTH_TOKEN: ${{github.token}}
- name: Compile
run: npm run build
- name: Run tests
run: npm run test

0 comments on commit 8572e95

Please # to comment.