不要怂,就是干,撸起袖子干!

Commit 2e42d66e by Simon Schick Committed by GitHub

ci(install): use package lock for install (#12154)

1 parent cae6b4dd
...@@ -13,7 +13,7 @@ branches: ...@@ -13,7 +13,7 @@ branches:
cache: npm cache: npm
install: install:
- npm install - npm ci
- |- - |-
if [ "$DIALECT" = "postgres-native" ]; then npm install pg-native; fi if [ "$DIALECT" = "postgres-native" ]; then npm install pg-native; fi
......
...@@ -36,11 +36,11 @@ Here comes a little surprise: You need [Node.JS](http://nodejs.org). ...@@ -36,11 +36,11 @@ Here comes a little surprise: You need [Node.JS](http://nodejs.org).
### 2. Install the dependencies ### 2. Install the dependencies
Just "cd" into sequelize directory and run `npm install`, see an example below: Just "cd" into sequelize directory and run `npm ci`, see an example below:
```sh ```sh
$ cd path/to/sequelize $ cd path/to/sequelize
$ npm install $ npm ci
``` ```
### 3. Database ### 3. Database
......
...@@ -14,12 +14,7 @@ environment: ...@@ -14,12 +14,7 @@ environment:
install: install:
- ps: Install-Product node $env:NODE_VERSION x64 - ps: Install-Product node $env:NODE_VERSION x64
- ps: | - npm ci
$pkg = ConvertFrom-Json (Get-Content -Raw package.json)
$pkg.devDependencies.PSObject.Properties.Remove('sqlite3')
$pkg.devDependencies.PSObject.Properties.Remove('pg-native')
ConvertTo-Json $pkg | Out-File package.json -Encoding UTF8
- npm install
build: off build: off
......
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!