Use actions/setup-node v4 DEVOPS-2662 #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |