2020 run : yarn install --check-files
2121 - name : build
2222 run : npx projen build
23- - name : Upload artifact
24- uses : actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b
25- with :
26- name : build-artifact
27- path : dist
2823 package-js :
2924 needs : build
3025 runs-on : ubuntu-latest
@@ -33,17 +28,15 @@ jobs:
3328 - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
3429 with :
3530 node-version : 18.x
36- - name : Download build artifacts
37- uses : actions/download-artifact@533298bc57c27f112a2c04a74a04a4d43e2866fd
31+ - name : Checkout
32+ uses : actions/checkout@v4
3833 with :
39- name : build-artifact
40- path : dist
41- - name : Prepare Repository
42- run : mv dist .repo
34+ ref : ${{ github.event.pull_request.head.ref }}
35+ repository : ${{ github.event.pull_request.head.repo.full_name }}
4336 - name : Install Dependencies
44- run : cd .repo && yarn install --check-files --frozen-lockfile
37+ run : yarn install --check-files --frozen-lockfile
4538 - name : Create js artifact
46- run : cd .repo && npx projen package:js
39+ run : npx projen package:js
4740 package-java :
4841 needs : build
4942 runs-on : ubuntu-latest
@@ -56,81 +49,73 @@ jobs:
5649 - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
5750 with :
5851 node-version : 18.x
59- - name : Download build artifacts
60- uses : actions/download-artifact@533298bc57c27f112a2c04a74a04a4d43e2866fd
52+ - name : Checkout
53+ uses : actions/checkout@v4
6154 with :
62- name : build-artifact
63- path : dist
64- - name : Prepare Repository
65- run : mv dist .repo
55+ ref : ${{ github.event.pull_request.head.ref }}
56+ repository : ${{ github.event.pull_request.head.repo.full_name }}
6657 - name : Install Dependencies
67- run : cd .repo && yarn install --check-files --frozen-lockfile
58+ run : yarn install --check-files --frozen-lockfile
6859 - name : Create java artifact
69- run : cd .repo && npx projen package:java
60+ run : npx projen package:java
7061 package-python :
7162 needs : build
7263 runs-on : ubuntu-latest
7364 permissions : {}
7465 steps :
75- - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
76- with :
77- node-version : 18.x
7866 - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
7967 with :
8068 python-version : 3.x
81- - name : Download build artifacts
82- uses : actions/download-artifact@533298bc57c27f112a2c04a74a04a4d43e2866fd
69+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
70+ with :
71+ node-version : 18.x
72+ - name : Checkout
73+ uses : actions/checkout@v4
8374 with :
84- name : build-artifact
85- path : dist
86- - name : Prepare Repository
87- run : mv dist .repo
75+ ref : ${{ github.event.pull_request.head.ref }}
76+ repository : ${{ github.event.pull_request.head.repo.full_name }}
8877 - name : Install Dependencies
89- run : cd .repo && yarn install --check-files --frozen-lockfile
78+ run : yarn install --check-files --frozen-lockfile
9079 - name : Create python artifact
91- run : cd .repo && npx projen package:python
80+ run : npx projen package:python
9281 package-dotnet :
9382 needs : build
9483 runs-on : ubuntu-latest
9584 permissions : {}
9685 steps :
97- - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
98- with :
99- node-version : 18.x
10086 - uses : actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25
10187 with :
10288 dotnet-version : 3.x
103- - name : Download build artifacts
104- uses : actions/download-artifact@533298bc57c27f112a2c04a74a04a4d43e2866fd
89+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
10590 with :
106- name : build-artifact
107- path : dist
108- - name : Prepare Repository
109- run : mv dist .repo
91+ node-version : 18.x
92+ - name : Checkout
93+ uses : actions/checkout@v4
94+ with :
95+ ref : ${{ github.event.pull_request.head.ref }}
96+ repository : ${{ github.event.pull_request.head.repo.full_name }}
11097 - name : Install Dependencies
111- run : cd .repo && yarn install --check-files --frozen-lockfile
98+ run : yarn install --check-files --frozen-lockfile
11299 - name : Create dotnet artifact
113- run : cd .repo && npx projen package:dotnet
100+ run : npx projen package:dotnet
114101 package-go :
115102 needs : build
116103 runs-on : ubuntu-latest
117104 permissions : {}
118105 steps :
119- - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
120- with :
121- node-version : 18.x
122106 - uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
123107 with :
124108 go-version : ^1.16.0
125- - name : Download build artifacts
126- uses : actions/download-artifact@533298bc57c27f112a2c04a74a04a4d43e2866fd
109+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
110+ with :
111+ node-version : 18.x
112+ - name : Checkout
113+ uses : actions/checkout@v4
127114 with :
128- name : build-artifact
129- path : dist
130- - name : Prepare Repository
131- run : mv dist .repo
115+ ref : ${{ github.event.pull_request.head.ref }}
116+ repository : ${{ github.event.pull_request.head.repo.full_name }}
132117 - name : Install Dependencies
133- run : cd .repo && yarn install --check-files --frozen-lockfile
118+ run : yarn install --check-files --frozen-lockfile
134119 - name : Create go artifact
135- run : cd .repo && npx projen package:go
120+ run : npx projen package:go
136121
0 commit comments