Skip to content

Commit

Permalink
Merge pull request #18 from sineverba/set-default-node-versions
Browse files Browse the repository at this point in the history
Set default node version
  • Loading branch information
sineverba committed Feb 16, 2021
2 parents ad5c96f + b840ee0 commit b7fd07a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .semaphore/deploy.yml
Expand Up @@ -12,7 +12,7 @@ blocks:
jobs:
- name: Deploy
commands:
- sem-version node 12
#- sem-version node 12
- checkout
- mv npmrc.txt .npmrc
- npm build
Expand Down
15 changes: 6 additions & 9 deletions .semaphore/semaphore.yml
Expand Up @@ -16,12 +16,12 @@ blocks:
task:
jobs:
- name: 'Install'
matrix:
- env_var: NODE_VERSION
values: [ "10", "11", "12", "13", "14" ]
#matrix:
# - env_var: NODE_VERSION
# values: [ "10", "11", "12", "13", "14" ]
commands:
- sem-version node $NODE_VERSION
- node --version
# - sem-version node $NODE_VERSION
# - node --version
- checkout
- cache restore
- npm install
Expand Down Expand Up @@ -52,13 +52,10 @@ blocks:
jobs:
- name: Coverage
commands:
- sem-version node 12
#- sem-version node 12
- npm run cover
- cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js

#secrets:
# - name: COVERALLS_SHORTFIELD_REPO_TOKEN

promotions:
- name: Deploy
pipeline_file: deploy.yml
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
@@ -1,4 +1,7 @@
# 0.3.0
# Next version
+ Set default node version

## 0.3.0
+ Add badges
+ Add custom length

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ E.g. "This is a long string" will return "This is a ..."

```js
var shortener = require('shortfield');
var shorted = shortener("This is a long string");
var shorted = shortener("This is a long string"); // default length is 10
console.log(shorted); // returns This is a ...

var shorted = shortener("This is a long string", 4);
Expand Down

0 comments on commit b7fd07a

Please sign in to comment.