📜  将 reactjs 包发布到 gitlab 存储库 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:37.859000             🧑  作者: Mango

代码示例1
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