mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-21 21:55:09 +00:00
Add new file
This commit is contained in:
parent
f7880a4404
commit
dd0a082fba
1 changed files with 25 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
image: node:latest
|
||||
|
||||
stages:
|
||||
- testing
|
||||
- deploy
|
||||
|
||||
test:
|
||||
stage: testing
|
||||
script:
|
||||
- npm i
|
||||
- npm run build
|
||||
- npm run test
|
||||
|
||||
publish-npm:
|
||||
stage: deploy
|
||||
needs: ['test']
|
||||
changes:
|
||||
paths:
|
||||
- package.json
|
||||
script:
|
||||
- echo "@sharkey:registry=https://${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/" > .npmrc
|
||||
- echo "//${CI_SERVER_HOST}/api/v4/groups/2/packages/npm/:_authToken=${NPM_TOKEN}" >> .npmrc
|
||||
- npm i
|
||||
- npm run build
|
||||
- npm publish
|
Loading…
Reference in a new issue