Skip to content

Commit f34f4ee

Browse files
authored
fix: templatize project name to exclude it in standalone instances (#43)
1 parent abc1f0f commit f34f4ee

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: pipx install algokit
4141

4242
- name: Bootstrap dependencies
43-
run: algokit project bootstrap all --project-name 'production_react_netlify'
43+
run: algokit project bootstrap all
4444

4545
- name: Publish to Netlify
4646
env:

examples/cloud_provider/production_react_netlify/.github/workflows/production-react-netlify-ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
run: pipx install algokit
3434

3535
- name: Install dependencies
36-
run: algokit project bootstrap all --project-name 'production_react_netlify'
36+
run: algokit project bootstrap all
3737

3838

3939
- name: Run linters
40-
run: algokit project run lint --project-name 'production_react_netlify'
40+
run: algokit project run lint
4141

4242

4343
- name: Run unit tests
44-
run: algokit project run test --project-name 'production_react_netlify'
44+
run: algokit project run test
4545

4646

4747
- name: Build
48-
run: algokit project run build --project-name 'production_react_netlify'
48+
run: algokit project run build

examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: pipx install algokit
4141

4242
- name: Bootstrap dependencies
43-
run: algokit project bootstrap all --project-name 'production_react_vercel'
43+
run: algokit project bootstrap all
4444

4545
- name: Publish to Vercel
4646
env:

examples/cloud_provider/production_react_vercel/.github/workflows/production-react-vercel-ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
run: pipx install algokit
3434

3535
- name: Install dependencies
36-
run: algokit project bootstrap all --project-name 'production_react_vercel'
36+
run: algokit project bootstrap all
3737

3838

3939
- name: Run linters
40-
run: algokit project run lint --project-name 'production_react_vercel'
40+
run: algokit project run lint
4141

4242

4343
- name: Run unit tests
44-
run: algokit project run test --project-name 'production_react_vercel'
44+
run: algokit project run test
4545

4646

4747
- name: Build
48-
run: algokit project run build --project-name 'production_react_vercel'
48+
run: algokit project run build

examples/production_react/.github/workflows/production-react-cd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ jobs:
4040
run: pipx install algokit
4141

4242
- name: Bootstrap dependencies
43-
run: algokit project bootstrap all --project-name 'production_react'
43+
run: algokit project bootstrap all
4444

examples/production_react/.github/workflows/production-react-ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
run: pipx install algokit
3434

3535
- name: Install dependencies
36-
run: algokit project bootstrap all --project-name 'production_react'
36+
run: algokit project bootstrap all
3737

3838

3939
- name: Run linters
40-
run: algokit project run lint --project-name 'production_react'
40+
run: algokit project run lint
4141

4242

4343
- name: Run unit tests
44-
run: algokit project run test --project-name 'production_react'
44+
run: algokit project run test
4545

4646

4747
- name: Build
48-
run: algokit project run build --project-name 'production_react'
48+
run: algokit project run build

template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% if cloud_provider != none %}{% include pathjoin('includes', 'project_name_kebab.jinja') %}-cd.yaml{% endif %}.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: pipx install algokit
4646

4747
- name: Bootstrap dependencies
48-
run: algokit project bootstrap all --project-name '{{ project_name }}'
48+
run: algokit project bootstrap all {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
4949
{% if cloud_provider == 'vercel' %}
5050
- name: Publish to Vercel
5151
env:

template_content/{% if use_github_actions %}.github{% endif %}/workflows/{% include pathjoin('includes', 'project_name_kebab.jinja') %}-ci.yaml.jinja

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
run: pipx install algokit
3636

3737
- name: Install dependencies
38-
run: algokit project bootstrap all --project-name '{{ project_name }}'
38+
run: algokit project bootstrap all {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
3939

4040
{% if use_eslint_prettier %}
4141
- name: Run linters
42-
run: algokit project run lint --project-name '{{ project_name }}'
42+
run: algokit project run lint {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
4343
{% endif %}
4444
{% if use_jest %}
4545
- name: Run unit tests
46-
run: algokit project run test --project-name '{{ project_name }}'
46+
run: algokit project run test {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}
4747
{% endif %}
4848

4949
- name: Build
50-
run: algokit project run build --project-name '{{ project_name }}'
50+
run: algokit project run build {% if use_workspace %}--project-name '{{ project_name }}'{% endif %}

0 commit comments

Comments
 (0)