diff --git a/.github/workflows/stripes-deploy.yml b/.github/workflows/stripes-deploy.yml new file mode 100644 index 000000000..5e64771e2 --- /dev/null +++ b/.github/workflows/stripes-deploy.yml @@ -0,0 +1,48 @@ +# This workflow will build the stripes bundle and deploy to S3. + +name: bundle-deploy +on: + workflow_dispatch: + +jobs: + bundle-deploy: + env: + FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci' + NODEJS_VERSION: '18' + #STRIPES_TRANSPILE_TOKENS: '@indexdata' + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - 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 + with: + node-version: ${{ env.NODEJS_VERSION }} + check-latest: true + always-auth: true + + - name: Set yarn config for FOLIO modules + run: yarn config set @folio:registry $FOLIO_NPM_REGISTRY + + - name: List FOLIO modules + run: yarn list --pattern @folio + + #- name: Run yarn lint + # run: yarn lint + # continue-on-error: true + + - name: Build Stripes bundle + run: yarn build + + - name: Deploy Stripes bundle to S3 + run: yarn deploy output + env: + AWS_ACCESS_KEY_ID: ${{ secrets.FOLIO_DEV_S3_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.FOLIO_DEV_S3_DEV_SECRET_ACCESS_KEY }} + AWS_REGION: 'us-east-2' diff --git a/package.json b/package.json index 6f0c4d174..093c6b488 100644 --- a/package.json +++ b/package.json @@ -10,71 +10,34 @@ "local": "f=stripes.config.js; test -f $f.local && f=$f.local; echo Using config $f; stripes serve $f", "test": "echo 'No unit tests implemented'", "test-int": "stripes test nightmare stripes.config.js", - "test-regression": "stripes test nightmare stripes.config.js --run WD/platform-core/checkout/users/inventory/requests/circulation/tenant-settings" + "test-regression": "stripes test nightmare stripes.config.js --run WD/platform-core/checkout/users/inventory/requests/circulation/tenant-settings", + "deploy": "sh -c 'find $0 -type f -exec gzip \"{}\" \\; -exec mv \"{}.gz\" \"{}\" \\; ; aws s3 sync ${0}/ s3://folio-dev-bundles/linkoping --acl public-read --content-encoding gzip --delete'" }, "dependencies": { - "@folio/acquisition-units": ">=1.0.0", - "@folio/agreements": ">=2.0.0", "@folio/bulk-edit": ">=1.0.0", "@folio/calendar": ">=2.0.5", "@folio/checkin": ">=1.3.0", "@folio/checkout": ">=1.3.0", "@folio/circulation": ">=1.3.0", "@folio/circulation-log": ">=1.0.0", - "@folio/courses": ">=1.0.0", - "@folio/dashboard": ">=1.0.0", "@folio/data-export": ">=1.0.0", "@folio/data-import": ">=0.0.0", "@folio/developer": ">=1.5.0", - "@folio/eholdings": ">=1.1.0", - "@folio/erm-comparisons": ">=1.0.0", - "@folio/erm-usage": ">=1.0.3", "@folio/export-manager": ">=1.0.0", - "@folio/finance": ">=1.1.0", - "@folio/gobi-settings": ">=1.0.0", - "@folio/handler-stripes-registry": ">=1.0.0", "@folio/inventory": ">=1.4.0", - "@folio/invoice": ">=1.0.0", - "@folio/ldp": ">=1.1.0", - "@folio/licenses": ">=2.0.0", - "@folio/local-kb-admin": ">=1.0.0", "@folio/marc-authorities": ">=1.0.0", "@folio/myprofile": ">=1.1.0", "@folio/notes": ">=1.0.0", - "@folio/oa": ">=1.0.0", - "@folio/oai-pmh": ">=1.0.0", - "@folio/orders": ">=1.1.0", - "@folio/organizations": ">=1.0.0", - "@folio/plugin-bursar-export": ">=1.0.0", "@folio/plugin-create-inventory-records": ">=1.0.0", - "@folio/plugin-eusage-reports": ">=1.0.0", - "@folio/plugin-find-agreement": ">=2.0.0", "@folio/plugin-find-authority": ">=1.0.0", - "@folio/plugin-find-contact": ">=1.0.0", - "@folio/plugin-find-eresource": ">=1.0.0", - "@folio/plugin-find-erm-usage-data-provider": ">=1.0.0", - "@folio/plugin-find-fund": ">=1.0.0", "@folio/plugin-find-import-profile": ">=1.1.0", "@folio/plugin-find-instance": ">=1.1.0", - "@folio/plugin-find-interface": ">=1.0.0", - "@folio/plugin-find-license": ">=2.0.0", - "@folio/plugin-find-organization": ">=1.0.0", - "@folio/plugin-find-package-title": ">=1.0.0", - "@folio/plugin-find-po-line": ">=1.0.0", "@folio/plugin-find-user": ">=1.3.0", - "@folio/plugin-query-builder": ">=1.0.0", "@folio/quick-marc": ">=1.0.0", - "@folio/reading-room": ">=1.0.0", - "@folio/receiving": ">=1.0.0", - "@folio/remote-storage": ">=1.0.0", "@folio/requests": ">=1.4.1", - "@folio/requests-mediated": ">=1.0.0", - "@folio/serials-management": ">=1.0.0", - "@folio/service-interaction": ">=1.0.0", "@folio/servicepoints": ">=1.1.0", "@folio/stripes": "^9.0.0", "@folio/stripes-authority-components": ">=2.0.0", - "@folio/stripes-erm-components": "^9.0.0", "@folio/stripes-inventory-components": ">=1.0.0", "@folio/stripes-marc-components": ">=1.0.0", "@folio/tags": ">=1.1.0", diff --git a/stripes.config.js b/stripes.config.js index c96699d0b..2ada3baf5 100644 --- a/stripes.config.js +++ b/stripes.config.js @@ -3,20 +3,17 @@ // const { merge } = require('lodash'); module.exports = { - okapi: { 'url':'https://snapshot-dev-okapi.folio-dev.indexdata.com', 'tenant':'snapshot' }, + okapi: { 'url':'https://snapshot-dev-okapi.folio-dev.indexdata.com', 'tenant':'linkoping' }, config: { logCategories: 'core,path,action,xhr', logPrefix: '--', maxUnpagedResourceCount: 2000, showPerms: false, - welcomeMessage: 'Welcome to Snapshot Dev environment (Poppy). The Future of Libraries is OPEN!', + welcomeMessage: 'Welcome to Snapshot Dev environment. The Future of Libraries is OPEN!', aboutInstallDate: '2024-07-15T05:00-05:00', - aboutInstallVersion: 'Poppy CSP 5' }, modules: { - '@folio/acquisition-units': {}, - '@folio/agreements' : {}, '@folio/bulk-edit': {}, '@folio/calendar' : {}, '@folio/checkin' : {}, @@ -26,56 +23,21 @@ module.exports = { '@folio/courses' : {}, '@folio/data-import' : {}, '@folio/data-export' : {}, - '@folio/dashboard' : {}, '@folio/developer' : {}, - '@folio/eholdings' : {}, - '@folio/erm-comparisons': {}, - '@folio/erm-usage' : {}, '@folio/export-manager': {}, - '@folio/handler-stripes-registry': {}, - "@folio/gobi-settings": {}, '@folio/inventory' : {}, - '@folio/invoice' : {}, - '@folio/finance' : {}, - '@folio/ldp' : {}, - '@folio/licenses' : {}, - '@folio/local-kb-admin': {}, '@folio/myprofile' : {}, '@folio/notes' : {}, - '@folio/oa' : {}, - '@folio/oai-pmh' : {}, - '@folio/orders' : {}, - '@folio/organizations' : {}, - '@folio/plugin-bursar-export': {}, '@folio/plugin-create-inventory-records' : {}, - '@folio/plugin-find-agreement' : {}, '@folio/plugin-find-authority' : {}, - '@folio/plugin-find-erm-usage-data-provider' : {}, - '@folio/plugin-find-fund' : {}, - '@folio/plugin-eusage-reports': {}, '@folio/plugin-find-import-profile' : {}, '@folio/plugin-find-instance' : {}, - '@folio/plugin-find-contact' : {}, - '@folio/plugin-find-eresource': {}, - '@folio/plugin-find-interface' : {}, - '@folio/plugin-find-license' : {}, - '@folio/plugin-find-organization' : {}, - '@folio/plugin-find-package-title': {}, - '@folio/plugin-find-po-line': {}, '@folio/plugin-find-user' : {}, - '@folio/plugin-query-builder' : {}, '@folio/quick-marc' : {}, '@folio/marc-authorities': {}, - '@folio/reading-room' : {}, - '@folio/receiving' : {}, - '@folio/remote-storage' : {}, '@folio/requests' : {}, - '@folio/requests-mediated' : {}, - '@folio/serials-management': {}, - '@folio/service-interaction': {}, '@folio/servicepoints' : {}, '@folio/stripes-authority-components' : {}, - '@folio/stripes-erm-components' : {}, '@folio/stripes-inventory-components' : {}, '@folio/stripes-marc-components' : {}, '@folio/tags' : {},