-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.45 KB
/
stripes-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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@v4
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@v4
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: Add @indexdata/harvester-admin
run: yarn add https://github.com/indexdata/ui-harvester-admin#main
- name: Run yarn lint
run: yarn lint
continue-on-error: true
- name: List FOLIO modules
run: yarn list --pattern @folio
- 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'