Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,39 @@ jobs:
node-version: 22.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_PROD }}
role-duration-seconds: 3600
role-skip-session-tagging: true

- name: Install dependencies
run: npm install

- name: Build library and website
env:
NEXT_PUBLIC_SITE_VERSION: next
run: npm run build

- name: Test library
run: npm run test

- name: Test library accessibility
run: npm run test:accessibility

- name: Publish NEXT version to npm
run: |
sed -i "s#\"version\": \".*\"#\"version\": \"$(jq -r .version ./packages/lib/package.json)-${GITHUB_SHA:0:7}\"#" ./packages/lib/package.json
cd packages/lib
npm publish --tag next --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

- name: Move NEXT website to S3
run: |
aws s3 rm s3://design-system-react-cdk-site-tmp/halstack/next/ --recursive
aws s3 cp ./apps/website/out/ s3://design-system-react-cdk-site-tmp/halstack/next/ --recursive
Loading