Skip to content
Snippets Groups Projects
Commit 933edcf5 authored by Majid Salehi's avatar Majid Salehi
Browse files

Update .gitlab-ci.yml

parent 650db0b0
No related branches found
No related tags found
No related merge requests found
#cache:
# paths:
# - node_modules/
cache:
paths:
- node_modules/
stages:
- build
......@@ -24,22 +24,16 @@ build-asset:
publish package to npm repository:
stage: publish
image: node:lts-buster-slim
image: node:16-alpine3.16
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
- npm install --only=dev
only:
refs:
#- master
#- next
#- beta
- develop
- master
changes:
- package.json
script:
# - echo npm run semantic-release
- export VERSION=$(node -p "require('./package.json').version")
- export CONTAINER_RELEASE_IMAGE=$CI_REGISTRY_IMAGE:$VERSION
- echo $CONTAINER_RELEASE_IMAGE
- echo npm run deploy
- echo deploy VERSION $VERSION
- npm run deploy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment