Skip to content
Snippets Groups Projects
Commit 1cf5558b authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'feature/packages' into 'main'

Feature/packages

See merge request !4
parents eba4102e 587c6ef1
No related branches found
No related tags found
1 merge request!4Feature/packages
...@@ -31,6 +31,8 @@ stages: ...@@ -31,6 +31,8 @@ stages:
script: script:
- if [ "$SHOPIFY_API_KEY" == "" ]; then echo "SHOPIFY_API_KEY is empty" ; exit 1; fi - if [ "$SHOPIFY_API_KEY" == "" ]; then echo "SHOPIFY_API_KEY is empty" ; exit 1; fi
- cd web/frontend - cd web/frontend
- npm config set -- //${CI_SERVER_HOST}/:_authToken=${CI_JOB_TOKEN}
- npm config set @octolize:registry https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm install - npm install
- npm run build - npm run build
......
npm.yml 0 → 100644
image: node:latest
stages:
- deploy
deploy:
stage: deploy
script:
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- npm publish
only:
- main
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment