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

feat: Migrate to a scoped npm package and update GitLab CI/CD to use `npm publish` for deployment.

parent 74fda3f6
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -24,9 +24,8 @@ publish-package:
  script:
    # Upload to GitLab Package Registry
    - |
      PACKAGE_FILE=$(ls masonite-broadcast-client-*.tgz)
      curl --header "PRIVATE-TOKEN: glpat-Jg7YJ3WqjM2qOIukctF_1m86MQp1OjJzCA.01.0y1ndn4go" \
          --upload-file "${PACKAGE_FILE}" \
          "https://git.kodiary.com/api/v4/projects/465/packages/generic/masonite-broadcast-client/1.0.0/masonite-broadcast-client-1.0.0.tgz"
      echo "@ashim:registry=https://git.kodiary.com/api/v4/projects/465/packages/npm/" > .npmrc
      echo "//git.kodiary.com/api/v4/projects/465/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
      npm publish
  only:
    - tags # Only publish on version tags
+4 −1
Original line number Diff line number Diff line
{
  "name": "masonite-broadcast-client",
  "name": "@ashim/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": {