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:
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
script:
- echo $NEXUS_NPM_TOKEN > ~/.npmrc
......@@ -11,6 +35,15 @@ test:
- 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
publish:
stage: publish
......
*
lib/test/
log-schema/
!log-schema/log-schema.json
\ No newline at end of file
!lib/index.js
!lib/index.d.ts
!*.md
!package.json
\ No newline at end of file
{
"name": "@nsd/log-schema-node",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"main": "lib/index.js",
"types": "lib/index",
"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