From 77aa15083561ab3f6a237c58ce8520d110e4e056 Mon Sep 17 00:00:00 2001 From: mato533 Date: Sun, 22 Jun 2025 23:38:34 +0900 Subject: [PATCH 1/5] ci: change directory of composite actions --- .../{workflows => }/actions/cache-vscode/action.yml | 0 .../actions/download-archive/action.yml | 0 .../actions/set-screen-resolution/action.yml | 0 .../{workflows => }/actions/setup-workspace/action.yml | 0 .../{workflows => }/actions/upload-archive/action.yml | 0 .github/workflows/ci-build.yml | 4 ++-- .github/workflows/ci-e2e.yml | 10 +++++----- .github/workflows/ci-lint.yml | 2 +- .github/workflows/ci-smoke.yml | 10 +++++----- .github/workflows/ci-typecheck.yml | 4 ++-- .github/workflows/ci-unit.yml | 4 ++-- .github/workflows/release.yml | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) rename .github/{workflows => }/actions/cache-vscode/action.yml (100%) rename .github/{workflows => }/actions/download-archive/action.yml (100%) rename .github/{workflows => }/actions/set-screen-resolution/action.yml (100%) rename .github/{workflows => }/actions/setup-workspace/action.yml (100%) rename .github/{workflows => }/actions/upload-archive/action.yml (100%) diff --git a/.github/workflows/actions/cache-vscode/action.yml b/.github/actions/cache-vscode/action.yml similarity index 100% rename from .github/workflows/actions/cache-vscode/action.yml rename to .github/actions/cache-vscode/action.yml diff --git a/.github/workflows/actions/download-archive/action.yml b/.github/actions/download-archive/action.yml similarity index 100% rename from .github/workflows/actions/download-archive/action.yml rename to .github/actions/download-archive/action.yml diff --git a/.github/workflows/actions/set-screen-resolution/action.yml b/.github/actions/set-screen-resolution/action.yml similarity index 100% rename from .github/workflows/actions/set-screen-resolution/action.yml rename to .github/actions/set-screen-resolution/action.yml diff --git a/.github/workflows/actions/setup-workspace/action.yml b/.github/actions/setup-workspace/action.yml similarity index 100% rename from .github/workflows/actions/setup-workspace/action.yml rename to .github/actions/setup-workspace/action.yml diff --git a/.github/workflows/actions/upload-archive/action.yml b/.github/actions/upload-archive/action.yml similarity index 100% rename from .github/workflows/actions/upload-archive/action.yml rename to .github/actions/upload-archive/action.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 63490d7..e9c9ab6 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -24,7 +24,7 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: '20' @@ -34,7 +34,7 @@ jobs: - name: โฌ†๏ธ Upload Build Artifacts if: ${{ runner.os == 'Linux' }} - uses: ./.github/workflows/actions/upload-archive + uses: ./.github/actions/upload-archive with: name: vscode-webdriverio output: vscode-webdriverio-build.zip diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index 4ee481e..d8a02dc 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -31,24 +31,24 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: ${{ matrix.node-version }} - name: โฌ‡๏ธ Download Build Archive - uses: ./.github/workflows/actions/download-archive + uses: ./.github/actions/download-archive with: name: vscode-webdriverio path: . filename: vscode-webdriverio-build.zip - name: ๐Ÿ—ƒ๏ธ Use cached vscode - uses: ./.github/workflows/actions/cache-vscode + uses: ./.github/actions/cache-vscode with: path: e2e/.wdio-vscode-service - name: ๐Ÿ–ฅ๏ธ Set screen resolution - uses: ./.github/workflows/actions/set-screen-resolution + uses: ./.github/actions/set-screen-resolution - name: ๐Ÿงช Run the e2e test env: @@ -57,7 +57,7 @@ jobs: shell: bash - name: ๐Ÿ“ฆ Upload Test Logs on Failure - uses: ./.github/workflows/actions/upload-archive + uses: ./.github/actions/upload-archive if: failure() with: name: ${{ inputs.compatibility-mode == 'yes' && 'compatibility' || 'e2e' }}-${{ matrix.scenario }}-logs-${{ matrix.os }} diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 97bf024..6064fdf 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -19,7 +19,7 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: '20' diff --git a/.github/workflows/ci-smoke.yml b/.github/workflows/ci-smoke.yml index 1acc5df..5b01cfc 100644 --- a/.github/workflows/ci-smoke.yml +++ b/.github/workflows/ci-smoke.yml @@ -28,24 +28,24 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: ${{ matrix.node-version }} - name: โฌ‡๏ธ Download Build Archive - uses: ./.github/workflows/actions/download-archive + uses: ./.github/actions/download-archive with: name: vscode-webdriverio path: . filename: vscode-webdriverio-build.zip - name: ๐Ÿ—ƒ๏ธ Use cached vscode - uses: ./.github/workflows/actions/cache-vscode + uses: ./.github/actions/cache-vscode with: path: e2e/.wdio-vscode-service - name: ๐Ÿ–ฅ๏ธ Set screen resolution - uses: ./.github/workflows/actions/set-screen-resolution + uses: ./.github/actions/set-screen-resolution - name: ๐Ÿš‚ Run the smoke test env: @@ -54,7 +54,7 @@ jobs: shell: bash - name: ๐Ÿ“ฆ Upload Test Logs on Failure - uses: ./.github/workflows/actions/upload-archive + uses: ./.github/actions/upload-archive if: failure() with: name: smoke-${{ inputs.scenario }}--logs-${{ matrix.os }} diff --git a/.github/workflows/ci-typecheck.yml b/.github/workflows/ci-typecheck.yml index a5c2b3c..4a2b585 100644 --- a/.github/workflows/ci-typecheck.yml +++ b/.github/workflows/ci-typecheck.yml @@ -24,12 +24,12 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: ${{ matrix.node-version }} - name: โฌ‡๏ธ Download Build Archive - uses: ./.github/workflows/actions/download-archive + uses: ./.github/actions/download-archive with: name: vscode-webdriverio path: . diff --git a/.github/workflows/ci-unit.yml b/.github/workflows/ci-unit.yml index dc81708..a5dd5a3 100644 --- a/.github/workflows/ci-unit.yml +++ b/.github/workflows/ci-unit.yml @@ -24,12 +24,12 @@ jobs: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: ${{ matrix.node-version }} - name: โฌ‡๏ธ Download Build Archive - uses: ./.github/workflows/actions/download-archive + uses: ./.github/actions/download-archive with: name: vscode-webdriverio path: . diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1788c7..732b311 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,7 +60,7 @@ jobs: fetch-depth: 0 - name: ๐Ÿ› ๏ธ Setup workspace - uses: ./.github/workflows/actions/setup-workspace + uses: ./.github/actions/setup-workspace with: node-version: '20' From d4a2bf6ef0cc8b14bc7d1dd9f3bd5f2c5b525ac0 Mon Sep 17 00:00:00 2001 From: mato533 Date: Sun, 22 Jun 2025 23:40:24 +0900 Subject: [PATCH 2/5] ci: pinning Actions to Commit SHAs --- .github/actions/cache-vscode/action.yml | 2 +- .github/actions/download-archive/action.yml | 2 +- .github/actions/setup-workspace/action.yml | 4 ++-- .github/actions/upload-archive/action.yml | 2 +- .github/workflows/ci-build.yml | 2 +- .github/workflows/ci-e2e.yml | 4 ++-- .github/workflows/ci-lint.yml | 2 +- .github/workflows/ci-smoke.yml | 4 ++-- .github/workflows/ci-typecheck.yml | 2 +- .github/workflows/ci-unit.yml | 4 ++-- .github/workflows/pr-labeler.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/update.yml | 4 ++-- 13 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/actions/cache-vscode/action.yml b/.github/actions/cache-vscode/action.yml index 824845c..a2039a3 100644 --- a/.github/actions/cache-vscode/action.yml +++ b/.github/actions/cache-vscode/action.yml @@ -13,7 +13,7 @@ runs: - name: ๐Ÿ—ƒ๏ธ Use cached vscode if: ${{ steps.generate-key.outputs.vscode-cache-key != '' }} - uses: actions/cache@v4.2.3 + uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 with: path: ${{ inputs.path }} key: ${{ steps.generate-key.outputs.vscode-cache-key }} diff --git a/.github/actions/download-archive/action.yml b/.github/actions/download-archive/action.yml index 29b0583..fe396ea 100644 --- a/.github/actions/download-archive/action.yml +++ b/.github/actions/download-archive/action.yml @@ -11,7 +11,7 @@ runs: using: 'composite' steps: - name: โฌ‡๏ธ Download Build Archive - uses: actions/download-artifact@v4.3.0 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: ${{ inputs.name }} path: ${{ inputs.path }} diff --git a/.github/actions/setup-workspace/action.yml b/.github/actions/setup-workspace/action.yml index a09440e..28228c1 100644 --- a/.github/actions/setup-workspace/action.yml +++ b/.github/actions/setup-workspace/action.yml @@ -9,12 +9,12 @@ runs: using: composite steps: - name: ๐Ÿงฐ Setup PNPM - uses: pnpm/action-setup@v4.1.0 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 with: run_install: false - name: ๐Ÿ› ๏ธ Setup Node.js ${{ inputs.node-version }} - uses: actions/setup-node@v4.4.0 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: ${{ inputs.node-version }} cache: 'pnpm' diff --git a/.github/actions/upload-archive/action.yml b/.github/actions/upload-archive/action.yml index d2b3a24..c475f6e 100644 --- a/.github/actions/upload-archive/action.yml +++ b/.github/actions/upload-archive/action.yml @@ -21,7 +21,7 @@ runs: if: ${{ runner.os == 'Windows' }} - name: โฌ†๏ธ Upload Archive - uses: actions/upload-artifact@v4.6.2 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: ${{ inputs.name }} path: ${{ inputs.output }} diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e9c9ab6..a045081 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ inputs.os }} steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index d8a02dc..a16f568 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -26,7 +26,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} @@ -65,7 +65,7 @@ jobs: paths: e2e/logs - name: ๐Ÿ› Debug Build - uses: stateful/vscode-server-action@v1.1.0 + uses: stateful/vscode-server-action@ec99599aefe0bf96d14491e1d5f7e80d30e22247 # v1.1.0 if: failure() with: timeout: '180000' diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 6064fdf..b43e319 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -14,7 +14,7 @@ jobs: runs-on: 'ubuntu-latest' steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/ci-smoke.yml b/.github/workflows/ci-smoke.yml index 5b01cfc..4734849 100644 --- a/.github/workflows/ci-smoke.yml +++ b/.github/workflows/ci-smoke.yml @@ -23,7 +23,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} @@ -62,7 +62,7 @@ jobs: paths: e2e/logs - name: ๐Ÿ› Debug Build - uses: stateful/vscode-server-action@v1.1.0 + uses: stateful/vscode-server-action@ec99599aefe0bf96d14491e1d5f7e80d30e22247 # v1.1.0 if: failure() with: timeout: '180000' diff --git a/.github/workflows/ci-typecheck.yml b/.github/workflows/ci-typecheck.yml index 4a2b585..51d7ac4 100644 --- a/.github/workflows/ci-typecheck.yml +++ b/.github/workflows/ci-typecheck.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} diff --git a/.github/workflows/ci-unit.yml b/.github/workflows/ci-unit.yml index a5dd5a3..21805f4 100644 --- a/.github/workflows/ci-unit.yml +++ b/.github/workflows/ci-unit.yml @@ -19,7 +19,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ssh-key: ${{ secrets.DEPLOY_KEY }} @@ -40,7 +40,7 @@ jobs: shell: bash - name: ๐Ÿ› Debug Build - uses: stateful/vscode-server-action@v1.1.0 + uses: stateful/vscode-server-action@ec99599aefe0bf96d14491e1d5f7e80d30e22247 # v1.1.0 if: failure() with: timeout: '180000' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index ac5ed35..2d42f0f 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Auto Label Based on Checklist - uses: actions/github-script@v7.0.1 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | const { owner, repo, number } = context.issue; diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 732b311..77849bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ๐Ÿ‘ท Checkout - uses: actions/checkout@v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: 'main' fetch-depth: 0 @@ -68,7 +68,7 @@ jobs: id: gen-pre-release-ver env: RELEASE_TYPE: ${{ github.event.inputs.releaseType }} - uses: actions/github-script@v7.0.1 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: result-encoding: string script: | diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 2b0642d..ba9c652 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Fetch PR metadata id: metadata - uses: dependabot/fetch-metadata@v2.4.0 + uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # v2.4.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -28,7 +28,7 @@ jobs: # Don't merge updates to GitHub Actions versions automatically. # (Some repos may wish to limit by version range (major/minor/patch), or scope (dep vs dev-dep), too.) if: contains(steps.metadata.outputs.package-ecosystem, 'npm') - uses: lewagon/wait-on-check-action@v1.3.4 + uses: lewagon/wait-on-check-action@ccfb013c15c8afb7bf2b7c028fb74dc5a068cccc # v1.3.4 with: ref: ${{ github.event.pull_request.head.sha }} repo-token: ${{ secrets.GITHUB_TOKEN }} From 8bfcee164845e378abec00858230259e672c6014 Mon Sep 17 00:00:00 2001 From: mato533 Date: Sun, 22 Jun 2025 23:43:14 +0900 Subject: [PATCH 3/5] ci: fix minor styling issue --- .github/actions/set-screen-resolution/action.yml | 2 ++ .github/workflows/ci-e2e.yml | 2 +- .github/workflows/ci-smoke.yml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/set-screen-resolution/action.yml b/.github/actions/set-screen-resolution/action.yml index facb73f..0910beb 100644 --- a/.github/actions/set-screen-resolution/action.yml +++ b/.github/actions/set-screen-resolution/action.yml @@ -37,5 +37,7 @@ runs: if: runner.os == 'macOS' shell: bash run: | + echo "::group::brew install displayplacer" brew install displayplacer + echo "::endgroup::" displayplacer list diff --git a/.github/workflows/ci-e2e.yml b/.github/workflows/ci-e2e.yml index a16f568..2aedd92 100644 --- a/.github/workflows/ci-e2e.yml +++ b/.github/workflows/ci-e2e.yml @@ -53,7 +53,7 @@ jobs: - name: ๐Ÿงช Run the e2e test env: E2E_SCENARIO: ${{ matrix.scenario }} - run: pnpm --filter @vscode-wdio/e2e run test:e2e:${E2E_SCENARIO} + run: pnpm --filter @vscode-wdio/e2e run "test:e2e:${E2E_SCENARIO}" shell: bash - name: ๐Ÿ“ฆ Upload Test Logs on Failure diff --git a/.github/workflows/ci-smoke.yml b/.github/workflows/ci-smoke.yml index 4734849..3c0cfa3 100644 --- a/.github/workflows/ci-smoke.yml +++ b/.github/workflows/ci-smoke.yml @@ -50,7 +50,7 @@ jobs: - name: ๐Ÿš‚ Run the smoke test env: E2E_SCENARIO: ${{ inputs.scenario }} - run: pnpm --filter @vscode-wdio/e2e run test:smoke:${E2E_SCENARIO} + run: pnpm --filter @vscode-wdio/e2e run "test:smoke:${E2E_SCENARIO}" shell: bash - name: ๐Ÿ“ฆ Upload Test Logs on Failure From 1cd87203ec29d0a6e7160cec0fc71e4428634cd2 Mon Sep 17 00:00:00 2001 From: mato533 Date: Mon, 23 Jun 2025 00:02:53 +0900 Subject: [PATCH 4/5] ci: use `--follow-tags` option when push after publish [skip ci] --- infra/release/src/push.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/infra/release/src/push.ts b/infra/release/src/push.ts index 5d020e2..6188d90 100755 --- a/infra/release/src/push.ts +++ b/infra/release/src/push.ts @@ -6,8 +6,6 @@ */ import shell from 'shelljs' -import pkg from '../../../lerna.json' with { type: 'json' } - const dryRunArgs = process.env.VSCODE_WDIO_DRY_RUN === 'yes' ? ' --dry-run' : '' function exec(command: string) { @@ -16,6 +14,5 @@ function exec(command: string) { } console.log('Pushing the commit and tag.\n') -exec(`git push origin --no-verify${dryRunArgs}`) -exec(`git push origin refs/tags/v${pkg.version} --no-verify${dryRunArgs}`) +exec(`git push origin --no-verify --follow-tags${dryRunArgs}`) console.log('\nSuccessfully pushed.\n') From 7d7efc168f45f85a76005c74da37018d700c6df4 Mon Sep 17 00:00:00 2001 From: mato533 Date: Mon, 23 Jun 2025 00:26:32 +0900 Subject: [PATCH 5/5] ci: update publish workflow [skip ci] --- .github/workflows/release.yml | 6 ++++++ infra/release/package.json | 1 - infra/release/src/push.ts | 18 ------------------ packages/vscode-webdriverio/package.json | 1 - 4 files changed, 6 insertions(+), 20 deletions(-) delete mode 100755 infra/release/src/push.ts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77849bd..557f523 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,12 @@ jobs: GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} VSCODE_WDIO_DRY_RUN: ${{ github.event.inputs.dryRun }} + - name: โœ… Push to remote repository + env: + DRY_RUN_ARGS: ${{ github.event.inputs.dryRun == 'yes' && '--dry-run' || '' }} + run: | + git push origin --no-verify --follow-tags "${DRY_RUN_ARGS}" + - name: ๐Ÿ“ Create the Github Release run: | pnpm --filter @vscode-wdio/release run release-note diff --git a/infra/release/package.json b/infra/release/package.json index 0489f36..ef56789 100644 --- a/infra/release/package.json +++ b/infra/release/package.json @@ -5,7 +5,6 @@ "scripts": { "cache-key": "tsx ./src/cacheKey.ts", "copy": "tsx ./src/copy.ts", - "push": "tsx ./src/push.ts", "update-version": "tsx ./src/updatePrereleaseVersion.ts", "release-note": "tsx ./src/createRelease.ts", "changelog": "tsx ./src/changelog.ts" diff --git a/infra/release/src/push.ts b/infra/release/src/push.ts deleted file mode 100755 index 6188d90..0000000 --- a/infra/release/src/push.ts +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env node -/** - * It seems that Lerna doesn't publish annotated tags to GitHub - * after the release. This script is a little helper to ensure - * this happens. - */ -import shell from 'shelljs' - -const dryRunArgs = process.env.VSCODE_WDIO_DRY_RUN === 'yes' ? ' --dry-run' : '' - -function exec(command: string) { - console.log(`> ${command}\n`) - shell.exec(command) -} - -console.log('Pushing the commit and tag.\n') -exec(`git push origin --no-verify --follow-tags${dryRunArgs}`) -console.log('\nSuccessfully pushed.\n') diff --git a/packages/vscode-webdriverio/package.json b/packages/vscode-webdriverio/package.json index 19f20a9..63805cb 100644 --- a/packages/vscode-webdriverio/package.json +++ b/packages/vscode-webdriverio/package.json @@ -38,7 +38,6 @@ "prepackage:update-version": "pnpm --filter @vscode-wdio/release run update-version", "package": "vsce package", "publish": "tsx ./scripts/publish.ts", - "postpublish": "pnpm --filter @vscode-wdio/release run push", "package:next": "pnpm run package --pre-release", "publish:next": "pnpm run publish --pre-release", "typecheck": "tsc --noEmit --project tsconfig.json",