Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
fix: replace npm ci
Browse files Browse the repository at this point in the history
* fix: clean install isn't need
  • Loading branch information
beetcb committed Feb 17, 2021
1 parent f50c0cd commit f8ccf3e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Init school and users
run: |
npm ci
npm i
node ./init.js
env: # Or as an environment variable
users: ${{ secrets.users }}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.traineddata
node_modules/
node_modules/
dist/
.cache/
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pipeline {
}
stage('签到') {
steps {
sh 'npm ci'
sh 'npm i'
sh 'node ./init.js'
sh 'date'
}
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
"name": "@beetcb/cea",
"version": "1.1.2",
"description": "campusphere-elegant-auth: login to swms/campusphere at ease",
"main": "index.js",
"main": "dist/index.js",
"bin": "dist/index.js",
"files": [
"dist/index.js"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "parcel build index.js --target node --no-source-maps"
},
"keywords": [
"campusphere",
Expand All @@ -16,7 +20,6 @@
"签到"
],
"repository": "beetcb/cea",
"bin": "./init.js",
"author": {
"name": "beetcb",
"email": "i@beetcb.com",
Expand Down

0 comments on commit f8ccf3e

Please sign in to comment.