Skip to content

Commit 37f3e2e

Browse files
authored
fix(workflow): 🐛 fixed issue creating tags in pre-release workflow (#160)
1 parent 4350abf commit 37f3e2e

File tree

4 files changed

+442
-464
lines changed

4 files changed

+442
-464
lines changed

.github/workflows/pre-release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,6 @@ jobs:
184184
with:
185185
token: ${{ env.PUSH_TOKEN }}
186186

187-
- name: Install Java and Maven
188-
uses: actions/setup-java@v3
189-
with:
190-
java-version: '11'
191-
distribution: 'adopt'
192-
193-
- name: Setup Node v16
194-
uses: actions/setup-node@v3
195-
with:
196-
node-version: '16'
197-
cache: 'yarn'
198-
199187
- name: Download target folder
200188
uses: actions/download-artifact@v3
201189
with:
@@ -227,7 +215,8 @@ jobs:
227215
- name: Create and Push Tag
228216
uses: EndBug/add-and-commit@v9
229217
with:
230-
tag: v${{ needs.prepare-pre-release.outputs.new-version }}
218+
tag: 'v${{ needs.prepare-pre-release.outputs.new-version }} --force'
231219
message: 🎉 Pre-release released to Maven central [skip ci]
232220
default_author: user_info
233221
push: true
222+
tag_push: '--force'

.github/workflows/release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,6 @@ jobs:
198198
with:
199199
token: ${{ env.PUSH_TOKEN }}
200200

201-
- name: Install Java and Maven
202-
uses: actions/setup-java@v3
203-
with:
204-
java-version: '11'
205-
distribution: 'adopt'
206-
207-
- name: Setup Node v16
208-
uses: actions/setup-node@v3
209-
with:
210-
node-version: '16'
211-
cache: 'yarn'
212-
213201
- name: Download target folder
214202
uses: actions/download-artifact@v3
215203
with:
@@ -242,10 +230,11 @@ jobs:
242230
- name: Create and Push Tag
243231
uses: EndBug/add-and-commit@v9
244232
with:
245-
tag: v${{ needs.prepare-release.outputs.new-version }}
233+
tag: 'v${{ needs.prepare-release.outputs.new-version }} --force'
246234
message: 🎉 Released v${{ needs.prepare-release.outputs.new-version }} to Maven central [skip ci]
247235
default_author: user_info
248236
push: true
237+
tag_push: '--force'
249238

250239
github-release:
251240
runs-on: ubuntu-latest

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@
3232
"devDependencies": {
3333
"@commitlint/cli": "^17.0.3",
3434
"@commitlint/config-conventional": "^17.0.3",
35-
"@types/node": "^18.6.5",
35+
"@types/node": "^18.7.3",
3636
"@typescript-eslint/eslint-plugin": "^5.33.0",
3737
"@typescript-eslint/parser": "^5.33.0",
3838
"commitlint": "^17.0.3",
39-
"eslint": "^8.21.0",
39+
"eslint": "^8.22.0",
4040
"eslint-config-google": "^0.14.0",
4141
"eslint-config-prettier": "^8.5.0",
42-
"eslint-import-resolver-typescript": "^3.4.0",
42+
"eslint-import-resolver-typescript": "^3.4.1",
4343
"eslint-plugin-import": "^2.26.0",
4444
"eslint-plugin-prettier": "^4.2.1",
4545
"eslint-plugin-react": "^7.30.1",
4646
"husky": "^8.0.1",
47-
"lerna": "^5.4.0",
47+
"lerna": "^5.4.1",
4848
"lerna-changelog": "^2.2.0",
4949
"lint-staged": "^13.0.3",
5050
"prettier": "^2.7.1",

0 commit comments

Comments
 (0)