Commit 64232512 authored by Ashim Shrestha's avatar Ashim Shrestha
Browse files

chore: Rename package, remove publish config, and dynamically upload to GitLab Package Registry.

parent 062e9cb7
Loading
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -23,8 +23,12 @@ publish-package:
  image: node:18
  script:
    # Upload to GitLab Package Registry
    - |
      PACKAGE_VERSION=$(node -p "require('./package.json').version")
      PACKAGE_NAME=$(node -p "require('./package.json').name")
      PACKAGE_FILE="${PACKAGE_NAME}-${PACKAGE_VERSION}.tgz"
      curl --header "PRIVATE-TOKEN: glpat-Jg7YJ3WqjM2qOIukctF_1m86MQp1OjJzCA.01.0y1ndn4go" \
      --upload-file masonite-broadcast-client-1.0.0.tgz \
      "https://git.kodiary.com/api/v4/projects/465/packages/generic/masonite-broadcast-client/1.0.0/masonite-broadcast-client-1.0.0.tgz"
        --upload-file "${PACKAGE_FILE}" \
        "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${PACKAGE_NAME}/${PACKAGE_VERSION}/${PACKAGE_FILE}"
  only:
    - tags # Only publish on version tags
+1 −4
Original line number Diff line number Diff line
{
  "name": "@ashim/masonite-broadcast-client",
  "name": "masonite-broadcast-client",
  "version": "1.0.0",
  "publishConfig": {
    "@ashim:registry": "https://git.kodiary.com/api/v4/projects/465/packages/npm/"
  },
  "main": "dist/mbroadcast.js",
  "license": "MIT",
  "dependencies": {