Skip to content

Commit

Permalink
gha fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Samets committed Jul 7, 2022
1 parent d5e2cca commit a7eff52
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
github-actions-ci:
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
YARN_TEST_OPTIONS: <options to pass to 'yarn test'>
SQ_ROOT_DIR: <replace>
COMPILE_TRANSLATION_FILES: <boolean set 'true' or 'false'>
PUBLISH_MOD_DESCRIPTOR: <publish mod desc to FOLIO registry (true|false)>
YARN_TEST_OPTIONS: ''
SQ_ROOT_DIR: './lib'
COMPILE_TRANSLATION_FILES: 'true'
PUBLISH_MOD_DESCRIPTOR: 'true'
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folio/'
FOLIO_NPM_REGISTRY_AUTH: '//repository.folio.org/repository/npm-folio/'
FOLIO_MD_REGISTRY: 'https://folio-registry.dev.folio.org'
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Setup kernel for react native, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODEJS_VERSION }}
check-latest: true
Expand Down Expand Up @@ -119,7 +119,6 @@ jobs:
docker run --name okapi -t -detach folioorg/okapi:latest dev
echo "OKAPI_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' okapi)" >> $GITHUB_ENV
sleep 10
- name: Pull all Module descriptors to local Okapi instance
if: ${{ env.PUBLISH_MOD_DESCRIPTOR == 'true' }}
uses: fjogeleit/http-request-action@master
Expand Down Expand Up @@ -207,7 +206,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

- name: Set up NPM environment for publishing
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODEJS_VERSION }}
check-latest: true
Expand All @@ -225,7 +224,6 @@ jobs:
echo ".github" >> .npmignore
echo ".scannerwork" >> .npmignore
cat .npmignore
- name: Publish NPM to FOLIO NPM registry
run: npm publish
env:
Expand All @@ -243,4 +241,3 @@ jobs:
data: ${{ steps.moduleDescriptor.outputs.content }}
username: ${{ secrets.FOLIO_REGISTRY_USERNAME }}
password: ${{ secrets.FOLIO_REGISTRY_PASSWORD }}

0 comments on commit a7eff52

Please sign in to comment.