Skip to content

Commit f337ac7

Browse files
committed
remove prepublish hook
1 parent 01f2fa0 commit f337ac7

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ jobs:
3434
3535
- name: Install deps
3636
run: |
37-
# uninstall any existing global serverless installations, if exists
38-
npm uninstall -g serverless || true
39-
npm uninstall serverless || true
40-
npm info serverless version
41-
# install dependencies
4237
npm install
4338
4439
- name: Update SLS version to v3
@@ -50,7 +45,7 @@ jobs:
5045
env:
5146
EXPECTED_SLS_MAJOR_VERSION: ${{ matrix.sls-major-version }}
5247
run : |
53-
installed_sls_version=$(npm info serverless version)
48+
installed_sls_version=$(npm list | grep serverless | grep '@2\.')
5449
echo "installed serverless version: ${installed_sls_version}"
5550
if [ "${installed_sls_version:0:1}" != ${EXPECTED_SLS_MAJOR_VERSION} ]; then
5651
echo "expected version ${EXPECTED_SLS_MAJOR_VERSION}, but installed ${installed_sls_version}"

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
"test:watch": "JASMINE_CONFIG_PATH=spec/support/jasmine.json jasmine",
1111
"test:integration": "JASMINE_CONFIG_PATH=spec/support/jasmine_integration.json jasmine",
1212
"test:integration:watch": "JASMINE_CONFIG_PATH=spec/support/jasmine_integration.json nodemon -L -i spec/integrate ./node_modules/.bin/jasmine",
13-
"test:cover": "jasmine --coverage",
14-
"prepublish": "npm run test",
15-
"preversion": "npm run test"
13+
"test:cover": "jasmine --coverage"
1614
},
1715
"repository": {
1816
"type": "git",

0 commit comments

Comments
 (0)