Skip to content

Commit 4b938c8

Browse files
authored
fix: pnpm lockfile in "update*" scripts (#1951)
This PR: - fixes [TML-1674](https://linear.app/prisma-company/issue/TML-1674/fix-language-tools-update-scripts) - updates the `pnpm` lockfile after updating the `package.json` files in `update*` scripts - complements #1947 --------- Co-authored-by: jkomyno <12381818+jkomyno@users.noreply.github.com>
1 parent 178481e commit 4b938c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1437
-2282
lines changed

.github/workflows/1_2_bump_extension_only.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
sh scripts/set_git_credentials.sh
4747
- name: Update extension version in scripts folder
4848
id: update
49-
run: node scripts/bump_extension_version.js extension-patch-release
49+
run: node scripts/bump_extension_version.mjs extension-patch-release
5050
- name: Commit and Push
5151
run: |
5252
sh scripts/commit_and_push.sh "[skip ci] bump extension version in scripts to ${{ steps.update.outputs.next_extension_version }}."
@@ -56,7 +56,7 @@ jobs:
5656
run: git checkout -f ${{ github.ref_name }}
5757
- name: Update VS Code extension version
5858
run: |
59-
node scripts/update_package_json_files.js dev ${{ steps.update.outputs.next_extension_version }} ""
59+
node scripts/update_package_json_files.mjs dev ${{ steps.update.outputs.next_extension_version }} ""
6060
- name: Install Dependencies
6161
run: pnpm install
6262
- name: Commit and Push

.github/workflows/1_2_stable_extension_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ jobs:
4545
sh scripts/set_git_credentials.sh
4646
- name: Update extension version in scripts folder
4747
id: update
48-
run: node scripts/bump_extension_version.js extension-${{ github.event.inputs.release_type }}-release
48+
run: node scripts/bump_extension_version.mjs extension-${{ github.event.inputs.release_type }}-release
4949
- name: Commit and Push
5050
run: |
5151
sh scripts/commit_and_push.sh "[skip ci] bump extension version in scripts to ${{ steps.update.outputs.next_extension_version }}."
5252
- name: Update VS Code extension version
5353
run: |
54-
node scripts/update_package_json_files.js latest ${{ steps.update.outputs.next_extension_version }} ""
54+
node scripts/update_package_json_files.mjs latest ${{ steps.update.outputs.next_extension_version }} ""
5555
- name: Install Dependencies
5656
run: pnpm install
5757
- name: Commit and Push

.github/workflows/1_check_for_updates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# First it runs this
3232
- name: Check for Prisma CLI update
3333
id: check_update
34-
run: node scripts/check_for_update.js
34+
run: node scripts/check_for_update.mjs
3535

3636
# ... and depending on the output any (or none) of these 3:
3737
- name: Invoke bump workflow with inputs for dev

.github/workflows/2_bump_versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
6262
- name: Update next extension version in scripts folder and output for later use
6363
id: update # Used to access the calculated next extension version in later steps
64-
run: node scripts/bump_extension_version.js prisma-${{ github.event.inputs.npm_channel }}-release
64+
run: node scripts/bump_extension_version.mjs prisma-${{ github.event.inputs.npm_channel }}-release
6565
- name: Commit and Push
6666
run: |
6767
sh scripts/commit_and_push.sh "[skip ci] bump Prisma CLI ${{ github.event.inputs.npm_channel }} version to ${{ github.event.inputs.version }} and extension version to ${{ steps.update.outputs.next_extension_version }} in scripts."
@@ -73,15 +73,15 @@ jobs:
7373
- name: Check for minor or major release
7474
id: is_minor_or_major
7575
run: |
76-
node scripts/is_minor_or_major_release.js ${{ github.event.inputs.npm_channel }}
76+
node scripts/is_minor_or_major_release.mjs ${{ github.event.inputs.npm_channel }}
7777
- name: Reset on 'main' branch if minor or major release
7878
if: ${{steps.is_minor_or_major.outputs.is_minor_or_major_release}}
7979
run: |
8080
git reset --hard main
8181
git push --force origin stable
8282
- name: Update Prisma CLI version and VS Code extension version
8383
run: |
84-
node scripts/update_package_json_files.js ${{ github.event.inputs.npm_channel }} ${{ steps.update.outputs.next_extension_version }} ${{ github.event.inputs.version }}
84+
node scripts/update_package_json_files.mjs ${{ github.event.inputs.npm_channel }} ${{ steps.update.outputs.next_extension_version }} ${{ github.event.inputs.version }}
8585
- name: Install Dependencies to update lock file
8686
run: pnpm install
8787
- name: Push to branch

.github/workflows/4_bump_LS_in_extension.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: pnpm install
5353
- name: Bump LS version in extension
5454
run: |
55-
node scripts/update_package_json_files.js ${{ github.event.inputs.extension_version }}
55+
node scripts/update_package_json_files.mjs ${{ github.event.inputs.extension_version }}
5656
- name: Install Dependencies
5757
run: pnpm install
5858
- name: Setup Git

.github/workflows/6_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ jobs:
5959
- name: Build all packages
6060
run: pnpm build
6161
- name: Replace Readme for marketplace
62-
run: node scripts/change_readme.js ${{ github.event.inputs.release_channel }}
62+
run: node scripts/change_readme.mjs ${{ github.event.inputs.release_channel }}
6363
- name: Build vsix
6464
run: cd packages/vscode && pnpm package
6565

6666
# Create GitHub Release and upload built result as asset
6767
- name: Get git tag and asset name
6868
id: names
69-
run: node scripts/get_tag_name.js ${{ github.event.inputs.release_channel }} ${{ github.event.inputs.extension_version }}
69+
run: node scripts/get_tag_name.mjs ${{ github.event.inputs.release_channel }} ${{ github.event.inputs.extension_version }}
7070
- name: create a GitHub release
7171
id: create_release
7272
# This action is not maintained since 3+ years!

.github/workflows/PR_build_extension.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
- name: Build all packages
4242
run: pnpm build
4343
- name: Replace Readme for marketplace
44-
run: node scripts/change_readme.js insider
44+
run: node scripts/change_readme.mjs insider
4545
- name: Update VS Code extension name
4646
run: |
47-
node scripts/update_package_json_file_PR_build.js
47+
node scripts/update_package_json_file_PR_build.mjs
4848
env:
4949
PR_NUMBER: ${{ github.event.number }}
5050
- name: Build vsix

.github/workflows/e2e_check_for_new_published_vsix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
- name: Get version of published extensions on the VS Code marketplace
2626
id: versions
2727
run: |
28-
node scripts/e2eTestsOnVsix/check_marketplace_version.js
28+
node scripts/e2eTestsOnVsix/check_marketplace_version.mjs
2929
- name: Check new release of stable and Insider
3030
id: check_published_version
3131
run: |
32-
node scripts/e2eTestsOnVsix/check_for_new_release.js ${{ steps.versions.outputs.insider_version }} ${{ steps.versions.outputs.stable_version }}
32+
node scripts/e2eTestsOnVsix/check_for_new_release.mjs ${{ steps.versions.outputs.insider_version }} ${{ steps.versions.outputs.stable_version }}
3333
- name: Trigger e2e tests for Insider
3434
if: ${{ steps.check_published_version.outputs.new_insider_version }}
3535
uses: benc-uk/workflow-dispatch@v1

.github/workflows/e2e_published_vsix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install extension via CLI
4444
id: install
4545
run: |
46-
node scripts/e2eTestsOnVsix/install_extension.js ${{ github.event.inputs.extension_type }} ${{ github.event.inputs.extension_version }}
46+
node scripts/e2eTestsOnVsix/install_extension.mjs ${{ github.event.inputs.extension_type }} ${{ github.event.inputs.extension_version }}
4747
- name: Run test
4848
if: ${{ steps.install.outputs.installed-extension }}
4949
uses: coactions/setup-xvfb@v1

jest.config.js

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

0 commit comments

Comments
 (0)