Skip to content

Commit

Permalink
Merge pull request #1527 from kintone-labs/develop
Browse files Browse the repository at this point in the history
SSR-4368: v1.17.0 release
  • Loading branch information
h000780 committed Mar 14, 2024
2 parents 57889b2 + e955690 commit d8c8678
Show file tree
Hide file tree
Showing 200 changed files with 17,552 additions and 1,544 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/actionlint_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Check workflow files
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/amplify_document_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Amplify Document Production Environment

on:
release:
types:
- released

jobs:
publishOnMasterRelease:
name: Deploying on Amplify Document Production Environment
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
ZIP_FILE_NAME: build_prod
BRANCH_NAME: prod
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies on document
run: npm ci
working-directory: docs/document
- name: Build document
run: npm run build
working-directory: docs/document
- name: Create deployment zip file
run: zip -r $ZIP_FILE_NAME *
working-directory: docs/document/build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: ${{ secrets.AWS_DOCUMENT_REGION }}
mask-aws-account-id: true
- name: Create Amplify deployment
id: create_deployment
run: |
output=$(aws amplify create-deployment --app-id ${{ secrets.AWS_DOCUMENT_APP_ID }} --branch-name $BRANCH_NAME)
echo "job_id=$(echo $output | jq -r '.jobId')" >> $GITHUB_OUTPUT
echo "zip_upload_url=$(echo $output | jq -r '.zipUploadUrl')" >> $GITHUB_OUTPUT
- name: Upload deployment zip file
run: |
curl \
-X PUT \
-H "Content-Type: application/zip" \
--upload-file "$ZIP_FILE_NAME".zip \
"${{ steps.create_deployment.outputs.zip_upload_url }}"
working-directory: docs/document/build
- name: Start Amplify deployment
run: |
aws amplify start-deployment \
--app-id ${{ secrets.AWS_DOCUMENT_APP_ID }} \
--branch-name $BRANCH_NAME \
--job-id ${{ steps.create_deployment.outputs.job_id }}
- name: Sleep for 30s
run: sleep 30
- name: Algolia crawler creation and recrawl
uses: algolia/algoliasearch-crawler-github-actions@v1
id: crawler_push
with:
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
crawler-name: "kintone"
site-url: "https://ui-component.kintone.dev"
71 changes: 71 additions & 0 deletions .github/workflows/amplify_document_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Amplify Document Staging Environment

on:
push:
branches:
- master

jobs:
publishOnMasterCommit:
name: Deploying on Amplify Document Staging Environment
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
ZIP_FILE_NAME: build_staging
BRANCH_NAME: staging
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies on root
run: npm ci
- name: Build umd file
run: npm run build:umd_prod
- name: Move umd file
run: mv umd/kuc.min.js docs/document/static/js
- name: Install dependencies on document
run: npm ci
working-directory: docs/document
- name: Replace kucLink
run: sed -i 's|https://unpkg.com/kintone-ui-component/umd/kuc.min.js|/js/kuc.min.js|' docusaurus.config.js
working-directory: docs/document
- name: Build document
run: npm run build
working-directory: docs/document
- name: Create deployment zip file
run: zip -r $ZIP_FILE_NAME *
working-directory: docs/document/build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_ARN }}
aws-region: ${{ secrets.AWS_DOCUMENT_REGION }}
mask-aws-account-id: true
- name: Create Amplify deployment
id: create_deployment
run: |
output=$(aws amplify create-deployment --app-id ${{ secrets.AWS_DOCUMENT_APP_ID }} --branch-name $BRANCH_NAME)
echo "job_id=$(echo $output | jq -r '.jobId')" >> $GITHUB_OUTPUT
echo "zip_upload_url=$(echo $output | jq -r '.zipUploadUrl')" >> $GITHUB_OUTPUT
- name: Upload deployment zip file
run: |
curl \
-X PUT \
-H "Content-Type: application/zip" \
--upload-file "$ZIP_FILE_NAME".zip \
"${{ steps.create_deployment.outputs.zip_upload_url }}"
working-directory: docs/document/build
- name: Start Amplify deployment
run: |
aws amplify start-deployment \
--app-id ${{ secrets.AWS_DOCUMENT_APP_ID }} \
--branch-name $BRANCH_NAME \
--job-id ${{ steps.create_deployment.outputs.job_id }}
12 changes: 6 additions & 6 deletions .github/workflows/check_license_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
run: sudo gem install license_finder

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand All @@ -42,13 +42,13 @@ jobs:
run: sudo gem install license_finder

- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Devdependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/check_release_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
name: Prepare for the release and trigger upload workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Run unit test
run: npm test
- name: Trigger run upload release workflows
uses: peter-evans/repository-dispatch@v2
uses: peter-evans/repository-dispatch@v3
with:
token: ${{secrets.WORKFLOW_TOKEN}}
event-type: release_dispatch_v1
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/commit_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
name: Run unit test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/execute_yamory_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: execute yamory on master branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: run Yamory
run: |
ls -1 -d docs/*/ | xargs -I {} bash -c "$(curl -sSf -L https://localscanner.yamory.io/script/npm)" -- --manifest {}/package.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/execute_yamory_weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: execute yamory on master branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: master
- name: run Yamory
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/netlify_document_live.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/netlify_document_staging.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/upload_release_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
name: Upload integrity and package to release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
Expand All @@ -34,7 +34,7 @@ jobs:
id: generate_binary
uses: ./.github/actions/generate_binary_file
- name: Upload integrity artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: v${{ steps.check_version.outputs.version }}-integrity
path: ./${{ steps.generate_binary.outputs.integrity }}
Expand Down
Loading

0 comments on commit d8c8678

Please sign in to comment.