Skip to content

Commit 86ee3cc

Browse files
committed
ci: update publish workflow
[skip ci]
1 parent 1cd8720 commit 86ee3cc

4 files changed

Lines changed: 7 additions & 21 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: 👷 Checkout
5757
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5858
with:
59-
ref: 'main'
59+
ref: ${{ github.ref_name }}
6060
fetch-depth: 0
6161

6262
- name: 🛠️ Setup workspace
@@ -112,6 +112,12 @@ jobs:
112112
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
113113
VSCODE_WDIO_DRY_RUN: ${{ github.event.inputs.dryRun }}
114114

115+
- name: ✅ Push to remote repository
116+
env:
117+
DRY_RUN_ARGS: ${{ github.event.inputs.dryRun == 'yes' && '--dry-run' || '' }}
118+
run: |
119+
git push origin --no-verify --follow-tags "${DRY_RUN_ARGS}"
120+
115121
- name: 📝 Create the Github Release
116122
run: |
117123
pnpm --filter @vscode-wdio/release run release-note

infra/release/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"scripts": {
66
"cache-key": "tsx ./src/cacheKey.ts",
77
"copy": "tsx ./src/copy.ts",
8-
"push": "tsx ./src/push.ts",
98
"update-version": "tsx ./src/updatePrereleaseVersion.ts",
109
"release-note": "tsx ./src/createRelease.ts",
1110
"changelog": "tsx ./src/changelog.ts"

infra/release/src/push.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/vscode-webdriverio/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"prepackage:update-version": "pnpm --filter @vscode-wdio/release run update-version",
3939
"package": "vsce package",
4040
"publish": "tsx ./scripts/publish.ts",
41-
"postpublish": "pnpm --filter @vscode-wdio/release run push",
4241
"package:next": "pnpm run package --pre-release",
4342
"publish:next": "pnpm run publish --pre-release",
4443
"typecheck": "tsc --noEmit --project tsconfig.json",

0 commit comments

Comments
 (0)