Skip to content

Commit bff714f

Browse files
committed
create an artifact
1 parent b16e8ac commit bff714f

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: NHSDigital/eps-workflow-quality-checks/.github/workflows/[email protected]
1616
secrets:
1717
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
18-
18+
1919
get_issue_number:
2020
runs-on: ubuntu-22.04
2121
outputs:
@@ -59,15 +59,38 @@ jobs:
5959
echo "commit_id=${{ github.sha }}" >> "$GITHUB_OUTPUT"
6060
echo "sha_short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
6161
62-
package_code:
62+
package_docker_image:
6363
needs: [get_issue_number, quality_checks, get_commit_id]
6464
uses: ./.github/workflows/docker_image_build.yml
6565
with:
6666
VERSION_NUMBER: PR-${{ needs.get_issue_number.outputs.issue_number }}
6767
COMMIT_ID: ${{ needs.get_commit_id.outputs.commit_id }}
6868

69-
release_code:
70-
needs: [get_issue_number, package_code, get_commit_id]
69+
package_npm_code:
70+
runs-on: ubuntu-22.04
71+
needs: [get_issue_number, quality_checks, get_commit_id]
72+
steps:
73+
- name: Checkout code
74+
uses: actions/checkout@v5
75+
with:
76+
ref: ${{ env.BRANCH_NAME }}
77+
78+
- name: Install dependencies
79+
run: |
80+
make install
81+
82+
- name: Package code
83+
run: |
84+
make package
85+
- uses: actions/upload-artifact@v4
86+
name: Upload packaged code
87+
with:
88+
name: NHSDigital-eps-cdk-constructs
89+
path: |
90+
lib/NHSDigital-eps-cdk-constructs-1.0.0.tgz
91+
92+
release_docker_image:
93+
needs: [get_issue_number, package_docker_image, get_commit_id]
7194
uses: ./.github/workflows/docker_image_upload.yml
7295
with:
7396
AWS_ENVIRONMENT: dev

0 commit comments

Comments
 (0)