-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.36 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
# 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'