chore(deps): update dependency json5 [security] - autoclosed #1805
Workflow file for this run
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: infra | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '.github/workflows/infra.yml' # on infra workflow change | |
- 'infra/**' # on code change | |
pull_request: | |
branches: | |
- 'master' | |
paths: | |
- '.github/workflows/infra.yml' # on infra workflow change | |
- 'infra/**' # on code change | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: Prepare | |
working-directory: infra | |
run: npm ci | |
- name: Lint | |
working-directory: infra | |
run: npm run lint | |
- name: Deploy | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: mooyoul/cloudwatch-logs-actions@v1.1.5 | |
env: | |
AWS_DEFAULT_REGION: us-east-1 | |
AWS_REGION: us-east-1 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT_ID }} | |
CDK_DEFAULT_REGION: "us-east-1" | |
CDN_DOMAIN_NAME: "refined-unipass.debug.so" | |
CDN_ZONE_NAME: "debug.so" | |
API_DOMAIN_NAME: ${{ secrets.API_DOMAIN_NAME }} | |
API_PATH: ${{ secrets.API_PATH }} | |
with: | |
group: refined-unipass | |
stream: ${{ github.sha }}-infra | |
retention: 30d | |
# Currently, working-directory cannot be used with Custom Actions | |
# @see https://github.community/t/unable-to-use-working-directory-with-docker-based-actions/16419/4 | |
run: | | |
cd $GITHUB_WORKSPACE/infra | |
npm run cdk -- deploy --ci --require-approval never |