Skip to content

Commit dbe4584

Browse files
chore: Adding dry-run jobs and fixing deps fpr the actual per package publish (#1255)
* chore: adding dry-run job
1 parent aee21f1 commit dbe4584

File tree

3 files changed

+37
-8
lines changed

3 files changed

+37
-8
lines changed

.yamato/project-publish.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,24 @@ publish_{{ project.name }}_{{ package.name }}:
1717
- "upm-ci~/packages/*.tgz"
1818
dependencies:
1919
- .yamato/project-pack.yml#pack_{{ project.name }}
20-
- .yamato/project-tests.yml#validate_{{ project.name }}_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}
21-
{% for editor in project.test_editors -%}
22-
{% for platform in test_platforms -%}
23-
- .yamato/project-tests.yml#test_{{ project.name }}_{{ package.name }}_{{ platform.name }}_{{ editor }}
24-
{% endfor -%}
25-
{% endfor -%}
20+
- .yamato/project-tests.yml#validate_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}
21+
22+
publish_{{ project.name }}_{{ package.name }}_dry_run:
23+
name: Publish Project {{project.name }} - Package {{ package.name }} to Internal Registry (dry-run)
24+
agent:
25+
type: Unity::VM
26+
image: package-ci/win10:stable
27+
flavor: b1.large
28+
commands:
29+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
30+
- upm-ci package publish --package-path {{ package.path }} --dry-run
31+
artifacts:
32+
artifacts:
33+
paths:
34+
- "upm-ci~/packages/*.tgz"
35+
dependencies:
36+
- .yamato/project-pack.yml#pack_{{ project.name }}
37+
- .yamato/project-tests.yml#validate_{{ package.name }}_{{ test_platforms.first.name }}_{{ validation_editor }}
2638

2739
{% endfor -%}
2840

@@ -43,4 +55,21 @@ publish_{{ project.name }}:
4355
- .yamato/project-pack.yml#pack_{{ project.name }}
4456
- .yamato/_run-all.yml#run_all_tests
4557

58+
publish_{{ project.name }}_dry_run:
59+
name: Publish ALL {{ project.name }} packages to Internal Registry (dry-run)
60+
agent:
61+
type: Unity::VM
62+
image: package-ci/win10:stable
63+
flavor: b1.large
64+
commands:
65+
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
66+
- upm-ci project publish --project-path {{ project.path }} --dry-run
67+
artifacts:
68+
artifacts:
69+
paths:
70+
- "upm-ci~/packages/*.tgz"
71+
dependencies:
72+
- .yamato/project-pack.yml#pack_{{ project.name }}
73+
- .yamato/_run-all.yml#run_all_tests
74+
4675
{% endfor -%}

.yamato/project.metafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
validation_editor: 2021.1
1+
validation_editor: 2020.3
22

33
# Platforms that will be tested. The first entry in this array will also
44
# be used for validation

com.unity.netcode.gameobjects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.unity.netcode.gameobjects",
33
"displayName": "Netcode for GameObjects",
44
"description": "Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.",
5-
"version": "0.2.0",
5+
"version": "0.2.0-preview.1",
66
"unity": "2020.3",
77
"dependencies": {
88
"com.unity.modules.ai": "1.0.0",

0 commit comments

Comments
 (0)