update release workflow #155
Workflow file for this run
This file contains hidden or 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: '20' | |
| 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: Upgrade npm to version that supports trusted publishing | |
| run: | | |
| npm install -g npm@^11.5.1 | |
| npm -v | |
| - 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 |