refactor(update docs and fix initial props): update docs and fix comp… #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Staging | |
on: | |
push: | |
branches: | |
- main | |
tags-ignore: | |
- "*.*" | |
jobs: | |
test: | |
env: | |
COURIER_WS_URL: ${{ secrets.COURIER_WS_URL }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
node-version: "18.x" | |
scope: "@trycourier" | |
always-auth: true | |
- run: yarn | |
- run: yarn lerna:publish:internal internal.$(git rev-parse --short "$GITHUB_SHA") | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- run: yarn build:components | |
env: | |
IS_STAGING: true | |
- uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --follow-symlinks --cache-control "max-age=31536000,public,immutable" | |
env: | |
AWS_S3_BUCKET: "courier-push-provider-prod-couriercomponentsbucket-jqacxmhbzmwx" | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
SOURCE_DIR: "./packages/components/dist" |