1111permissions :
1212 id-token : write
1313 contents : read
14+ actions : read
1415
1516jobs :
1617 release :
17- uses : cloudscape-design/actions/.github/workflows/release.yml@main
18- secrets : inherit
19- with :
20- publish-packages : lib/components,lib/components-themeable
21- skip-test : true
18+ concurrency : release-${{ github.ref }}
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+
27+ - run : npm install
28+ - run : npm run build
29+ - name : Upload release artifacts
30+ id : upload-release
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : release
34+ path : lib
35+
36+ - name : Configure AWS Credentials
37+ uses : aws-actions/configure-aws-credentials@v4
38+ with :
39+ role-to-assume : ${{ inputs.role-to-assume || secrets.AWS_CODEARTIFACT_ROLE }}
40+ aws-region : us-west-2
41+ - name : Run CodeBuild
42+ uses : aws-actions/aws-codebuild-run-build@v1
43+ with :
44+ project-name : ${{ inputs.project-name || secrets.AWS_CODEBUILD_PROJECT_NAME || 'Importer-v2' }}
45+ disable-source-override : true
46+ hide-cloudwatch-logs : true
47+ env-vars-for-codebuild : |
48+ AWSUI_GITHUB_ARTIFACT_ID,
49+ AWSUI_GITHUB_BRANCH_NAME,
50+ AWSUI_GITHUB_COMMIT_SHA,
51+ AWSUI_GITHUB_COMMIT_MESSAGE,
52+ AWSUI_GITHUB_REPOSITORY_NAME,
53+ AWSUI_GITHUB_TOKEN
54+ env :
55+ AWSUI_GITHUB_ARTIFACT_ID : ${{ steps.upload-release.outputs.artifact-id }}
56+ AWSUI_GITHUB_BRANCH_NAME : ${{ github.head_ref || github.ref_name }}
57+ AWSUI_GITHUB_COMMIT_SHA : ${{ github.sha }}
58+ AWSUI_GITHUB_COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
59+ AWSUI_GITHUB_REPOSITORY_NAME : ${{ github.event.repository.full_name }}
60+ AWSUI_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments