Skip to content

Commit 6a1e02e

Browse files
committed
chore(root): fix manual post release
1 parent 51304a6 commit 6a1e02e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/manual-post-release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ on:
1818
required: true
1919
type: boolean
2020
default: false
21+
mark_as_latest:
22+
description: 'Mark the packages as latest'
23+
required: true
24+
type: boolean
25+
default: true
2126

2227
env:
2328
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
@@ -60,11 +65,15 @@ jobs:
6065
- name: Build packages
6166
run: pnpm run build:packages
6267

68+
- name: Mark packages as latest
69+
if: ${{ github.event.inputs.mark_as_latest }}
70+
run: |
71+
export NX_RELEASE_TAG=latest
72+
6373
- name: Publish packages to NPM
6474
env:
6575
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6676
run: |
67-
export NX_RELEASE_TAG=latest
6877
pnpm nx run-many -t nx-release-publish --projects=${{ github.event.inputs.packages }}
6978
7079
- name: Create and push tags

0 commit comments

Comments
 (0)