diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 90e3b6c..334de70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,8 @@ jobs: ${{ runner.os }}-node- - name: Test run: | - npm i - npm run test:jest + npm ci + npm run test - name: Release uses: cycjimmy/semantic-release-action@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6a65c4..8b715dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ on: [push, pull_request] jobs: test: runs-on: ubuntu-latest - steps: + steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 with: @@ -25,5 +25,5 @@ jobs: key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - - run: npm i - - run: npm run test:jest + - run: npm ci + - run: npm run test diff --git a/examples/playground/package-lock.json b/examples/playground/package-lock.json index 1f4b083..9f86bfb 100644 --- a/examples/playground/package-lock.json +++ b/examples/playground/package-lock.json @@ -8,7 +8,7 @@ "name": "@googlemaps/marker__playground", "version": "1.3.0", "dependencies": { - "monaco-editor": "^0.41.0" + "monaco-editor": "^0.40.0" }, "devDependencies": { "@types/google.maps": "^3.50.5", @@ -1735,9 +1735,9 @@ } }, "node_modules/monaco-editor": { - "version": "0.41.0", - "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.41.0.tgz", - "integrity": "sha512-1o4olnZJsiLmv5pwLEAmzHTE/5geLKQ07BrGxlF4Ri/AXAc2yyDGZwHjiTqD8D/ROKUZmwMA28A+yEowLNOEcA==" + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/monaco-editor/-/monaco-editor-0.40.0.tgz", + "integrity": "sha512-1wymccLEuFSMBvCk/jT1YDW/GuxMLYwnFwF9CDyYCxoTw2Pt379J3FUhwy9c43j51JdcxVPjwk0jm0EVDsBS2g==" }, "node_modules/mri": { "version": "1.2.0", diff --git a/package.json b/package.json index 9b921c0..5b3e96f 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "clean": "rm -rf ./dist", "test": "run-s test:*", "prepack": "npm run build", + "pretest": "cd ./examples/playground && ( [ -d ./node_modules ] || npm install )", "test:tsc": "tsc", "test:prettier": "prettier -c ./src", "test:eslint": "eslint './src/**/*ts' './examples/playground/src/*.ts'",