Readme lupdated and missing styles applied to flex #109
This file contains hidden or 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: Publish Release | |
| on: | |
| push | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install Node.js 18.x | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 18.x | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Configure AWS Credentials | |
| uses: aws-actions/configure-aws-credentials@v1 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-west-2 | |
| role-to-assume: ${{ secrets.AWS_ROLE_SANDBOX }} | |
| role-duration-seconds: 3600 | |
| role-skip-session-tagging: true | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build library and website | |
| run: npm run build | |
| - name: Test library | |
| run: npm run test | |
| - name: Test library accessibility | |
| run: npm run test:accessibility | |
| - name: Publish RELEASE to npm | |
| run: | | |
| sed -i "s#\"version\": \".*\"#\"version\": \"15.3.1\"#" ./packages/lib/package.json | |
| cd packages/lib | |
| npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
| - name: Install scripts dependencies | |
| run: cd scripts && npm install | |
| - name: Move RELEASE website to S3 | |
| run: node scripts/release-website.js 15.3.1 | |
| - name: Execute script version | |
| run: node scripts/create-version.js 15.3.1 | |
| - name: Deploy version to S3 Bucket | |
| run: | | |
| aws s3 rm s3://design.system.components.catalog/guidelines/version --recursive | |
| aws s3 cp ./catalog/version/ s3://design.system.components.catalog/guidelines/version --recursive |