Skip to content

Use actions/setup-node v4 DEVOPS-2662 #9

Use actions/setup-node v4 DEVOPS-2662

Use actions/setup-node v4 DEVOPS-2662 #9

Workflow file for this run

name: Build NPM
on:
push:
jobs:
build:
env:
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
RESHARE_NPM_REGISTRY: 'https://registry.npmjs.org'
NODEJS_VERSION: '18'
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODEJS_VERSION }}
registry-url: ${{ env.RESHARE_NPM_REGISTRY }}
scope: '@projectreshare'
- name: Set yarn config
run: |
yarn config set @folio:registry ${{ env.FOLIO_NPM_REGISTRY }}
yarn config set @projectreshare:registry ${{ env.RESHARE_NPM_REGISTRY }}
- run: yarn install