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

feat: Configure GitLab CI/CD for package publishing and add .npmignore rules.

parent 3621ce9e
Loading
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+30 −0
Original line number Diff line number Diff line
# # .gitlab-ci.yml in massonite-socket-client
# stages:
#   - build
#   - package
#   - publish

# create-package:
#   stage: package
#   image: node:18
#   script:
#     - npm ci
#     - npm run build
#     - npm pack
#   artifacts:
#     paths:
#       - masonite-broadcast-client-*.tgz
#     expire_in: 1 week

# publish-package:
#   stage: publish
#   image: node:18
#   script:
#     # Upload to GitLab Package Registry
#     - |
#       PACKAGE_FILE=$(ls masonite-broadcast-client-*.tgz)
#       curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
#            --upload-file "${PACKAGE_FILE}" \
#            "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/masonite-broadcast-client/${CI_COMMIT_TAG}/${PACKAGE_FILE}"
#   only:
#     - tags # Only publish on version tags

.npmignore

0 → 100644
+10 −0
Original line number Diff line number Diff line
# .npmignore - Exclude from packaged tarball
src/
tests/
.gitignore
.gitlab-ci.yml
*.log
.env
.DS_Store
node_modules/
coverage/
 No newline at end of file
+63.2 KiB

File added.

No diff preview for this file type.

+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  },
  "scripts": {
    "build": "esbuild src/app.ts --bundle --outfile=dist/mbroadcast.js --minify --sourcemap",
    "pack": "npm run build && npm pack",
    "copy": "yarn build && cp -r dist ~/Projects/MasonitePackages/masonite-socketio-driver/tests/integrations/storage/public/",
    "release": "npm run build && npm version patch && npm publish",
    "lint": "eslint src/**/*.ts"