Fix npmignore and update build script

Signed-off-by: default avatarSnorre Magnus Davøen <snorre.davoen@nsd.uib.no>
parent 4c427f32
Pipeline #5102 passed with stages
in 31 seconds
...@@ -4,6 +4,30 @@ stages: ...@@ -4,6 +4,30 @@ stages:
test: test:
stage: test stage: test
except:
- tags
image: node:7.8-alpine
script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc
- echo 'always-auth=true' >> ~/.npmrc
- npm set registry https://nexus.nsd.no/repository/npm-group/
- yarn install
- yarn compile
artifacts:
expire_in: 1 week
paths:
- lib/index.d.ts
- lib/index.js
- log-schema/log-schema.json
- README.md
- LICENSE
- package.json
test-release:
stage: test
only:
- tags
image: node:7.8-alpine image: node:7.8-alpine
script: script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc - echo $NEXUS_NPM_TOKEN > ~/.npmrc
...@@ -11,6 +35,15 @@ test: ...@@ -11,6 +35,15 @@ test:
- npm set registry https://nexus.nsd.no/repository/npm-group/ - npm set registry https://nexus.nsd.no/repository/npm-group/
- yarn install - yarn install
- yarn compile - yarn compile
artifacts:
expire_in: 1 week
paths:
- lib/index.d.ts
- lib/index.js
- log-schema/log-schema.json
- README.md
- LICENSE
- package.json
publish: publish:
stage: publish stage: publish
......
* lib/test/
!log-schema/log-schema.json log-schema/
!lib/index.js !log-schema/log-schema.json
!lib/index.d.ts \ No newline at end of file
!*.md
!package.json
\ No newline at end of file
{ {
"name": "@nsd/log-schema-node", "name": "@nsd/log-schema-node",
"version": "3.0.0-alpha.1", "version": "3.0.0-alpha.2",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index", "types": "lib/index",
"scripts": { "scripts": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment