mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-12-03 11:17:28 +00:00
27 lines
553 B
YAML
27 lines
553 B
YAML
image: node:latest
|
|
|
|
stages:
|
|
- testing
|
|
- deploy
|
|
|
|
test:
|
|
stage: testing
|
|
script:
|
|
- npm i
|
|
- npm run build
|
|
- npm run test
|
|
|
|
publish-npm:
|
|
stage: deploy
|
|
needs: ['test']
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH == "stable"
|
|
changes:
|
|
paths:
|
|
- package.json
|
|
script:
|
|
- echo "@transfem-org:registry=https://${CI_SERVER_HOST}/api/v4/projects/2/packages/npm/" > .npmrc
|
|
- echo "//${CI_SERVER_HOST}/api/v4/projects/2/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
|
|
- npm i
|
|
- npm run build
|
|
- npm publish
|