Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 8748c0c

Browse files
author
Ron Netzer
committed
fix(utils): add line break
1 parent 1f941be commit 8748c0c

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,29 @@ jobs:
147147
release-branches: '["main"]'
148148
node-module: true
149149
release-assets: |
150-
'./dist/packages/*'
150+
'./dist/packages'
151151
'./CHANGELOG.md'
152152
env:
153153
GITHUB_TOKEN: ${{ steps.githubAppAuth.outputs.token }}
154154
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
155155

156+
- name: Update git tags
157+
run: |
158+
git config --global hub.protocol https
159+
git config user.name e-square-ci
160+
git config user.email ci@e-square.io
161+
git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/e-square-io/nx-github-actions.git"
162+
git remote set-url --push origin "https://x-access-token:$GITHUB_TOKEN@github.com/e-square-io/nx-github-actions.git"
163+
git tag -d v${{ needs.release.outputs.major }} || true
164+
git tag -d v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} || true
165+
git push -f origin --delete v${{ needs.release.outputs.major }} || true
166+
git push -f origin --delete v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} || true
167+
git tag -fa v${{ needs.release.outputs.major }} -m "Release v${{ needs.release.outputs.major }}"
168+
git tag -fa v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} -m "Release v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }}"
169+
git push -f --tags
170+
env:
171+
GITHUB_TOKEN: ${{ steps.githubAppAuth.outputs.token }}
172+
156173
publish:
157174
name: Publish actions
158175
if: ${{ needs.release.outputs.released }}
@@ -169,21 +186,6 @@ jobs:
169186
persist-credentials: false
170187
fetch-depth: 0
171188

172-
- name: Update git tags
173-
run: |
174-
git config --global hub.protocol https
175-
git config user.name e-square-ci
176-
git config user.email ci@e-square.io
177-
git remote set-url origin "https://x-access-token:$GITHUB_TOKEN@github.com/e-square-io/nx-github-actions.git"
178-
git remote set-url --push origin "https://x-access-token:$GITHUB_TOKEN@github.com/e-square-io/nx-github-actions.git"
179-
git tag -d v${{ needs.release.outputs.major }} || true
180-
git tag -d v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} || true
181-
git push -f origin --delete v${{ needs.release.outputs.major }} || true
182-
git push -f origin --delete v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} || true
183-
git tag -fa v${{ needs.release.outputs.major }} -m "Release v${{ needs.release.outputs.major }}"
184-
git tag -fa v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }} -m "Release v${{ needs.release.outputs.major }}.${{ needs.release.outputs.minor }}"
185-
git push -f --tags
186-
187189
- name: Obtain GitHub App Installation Access Token
188190
id: githubAppAuth
189191
run: |

packages/utils/src/lib/nx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export async function nxCommand(command: string, target: string, exec: Exec, arg
7878

7979
export async function nxPrintAffected(target: string, exec: Exec): Promise<string[]> {
8080
const projects = (await nxCommand('print-affected', target, exec, ['--select=tasks.target.project'])).trim();
81+
8182
debug(`🐞 Affected project for ${target}: ${projects}`);
8283

8384
return projects.split(', ');

0 commit comments

Comments
 (0)