Skip to content

Commit

Permalink
move github actions ci to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tonidero committed Jan 16, 2024
1 parent fa81e78 commit 01d8449
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Test (rcbilling-demo)

on: [push]

Expand All @@ -15,26 +15,28 @@ jobs:
node-version: 18.x

- name: npm install
working-directory: ./examples/rcbilling-demo
run: |
npm ci
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: npm lint
working-directory: ./examples/rcbilling-demo
run: |
npm run lint
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: check format
working-directory: ./examples/rcbilling-demo
run: |
npm run prettier:ci
env:
CI: true

- name: npm build
working-directory: ./examples/rcbilling-demo
run: |
npm run build
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,30 @@ jobs:
node-version: 18.x

- name: npm install
working-directory: ./examples/rcbilling-demo
run: |
npm ci
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: npm lint
working-directory: ./examples/rcbilling-demo
run: |
npm run lint
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: check format
working-directory: ./examples/rcbilling-demo
run: |
npm run prettier:ci
env:
CI: true

- name: npm build
working-directory: ./examples/rcbilling-demo
run: |
npm run build
env:
Expand All @@ -64,13 +68,16 @@ jobs:
VITE_RC_STRIPE_PK_KEY: ${{ secrets.RC_STRIPE_PK_KEY }}

- name: Sync files to S3 bucket
working-directory: ./examples/rcbilling-demo
run: |
aws s3 sync dist s3://app-rcbillingdemo.revenuecat.com --delete
- name: Fix cache control on index.html
working-directory: ./examples/rcbilling-demo
run: |
aws s3 cp --cache-control 'no-cache' --content-type 'text/html' s3://app-rcbillingdemo.revenuecat.com/index.html s3://app-rcbillingdemo.revenuecat.com/index.html --metadata-directive REPLACE
- name: Invalidate Cloudfront Distribution
working-directory: ./examples/rcbilling-demo
run: |
aws cloudfront create-invalidation --distribution-id E31EVZCWLXEOFB --paths "/*"

0 comments on commit 01d8449

Please sign in to comment.