Skip to content

Commit ef05376

Browse files
authored
chore: fix publishing workflow to align e2e [skip ci] (#535)
1 parent 5638bfc commit ef05376

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/publish-packages.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Checkout
4848
uses: actions/checkout@v4
4949
with:
50-
ref: ${{ github.event.inputs.target_branch }}
50+
ref: ${{ inputs.target_branch }}
5151

5252
- name: Remove Vitest If Needed
5353
if: ${{ matrix.node-version == '16.x' }}
@@ -93,24 +93,40 @@ jobs:
9393
jq 'del(.publishConfig.provenance)' "$filename" > temp.json && mv temp.json "$filename"
9494
done
9595
96-
- name: Commit Change
96+
- name: Config Git
9797
run: |
9898
git config --global user.email "[email protected]"
9999
git config --global user.name "Suites e2e"
100+
101+
- name: Commit Provenance Change
102+
run: |
100103
git add .
101104
git commit -am "remove provenance"
102105
106+
- name: Version Packages
107+
run: |
108+
lerna version --yes \
109+
--no-changelog \
110+
--allow-branch ${{ inputs.target_branch }} \
111+
--no-git-tag-version \
112+
--no-push \
113+
--force-publish \
114+
--no-commit-hooks \
115+
--conventional-commits
116+
117+
- name: Commit Packages Versions
118+
run: |
119+
git add .
120+
git commit -am "bump versions"
121+
103122
- name: Publish Packages
104123
run: |
105124
yarn lerna publish from-package --yes \
106125
--no-git-tag-version \
107126
--no-push \
108-
--no-changelog \
109-
--no-commit-hooks \
110127
--no-git-reset \
111128
--exact \
112-
--force-publish \
113-
--dist-tag ci
129+
--dist-tag e2e
114130
115131
- name: Setup and Test
116132
run: |
@@ -122,6 +138,8 @@ jobs:
122138
run: |
123139
rm -rf packages
124140
rm -rf node_modules
141+
rm yarn.lock
142+
rm package.json
125143
126144
- name: Install Dependencies
127145
run: |

0 commit comments

Comments
 (0)