@vighnalabs-packages/utilities 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ name: Deploy Production
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [production]
5
+ branches: [initial-setup-2]
6
6
 
7
7
  jobs:
8
8
  build-and-deploy:
@@ -14,4 +14,4 @@ jobs:
14
14
  mkdir -p ~/.ssh
15
15
  echo "${{ secrets.MAC_AIR_PRIVATE_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
16
16
  - name: Deploy to Server
17
- run: ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.SH_USER }}@${{ secrets.DEBIAN_SERVER_IP }} 'cd vighnalabs/vighnalabs-packages/utilities/ && sh deploy.production.sh'
17
+ run: ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.SH_USER }}@${{ secrets.DEBIAN_SERVER_IP }} 'cd vighnalabs/vighnalabs-packages/utilities/ && sh deploy.production.sh --data={{ secrets.NPM_TOKEN }}'
@@ -1,3 +1,9 @@
1
1
  #!/bin/bash
2
+ echo "Pulling latest code..."
3
+ git pull --ff-only
2
4
 
3
- npm config set //registry.npmjs.org/:_authToken=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
5
+ echo "Installing dependencies..."
6
+ npm install
7
+
8
+ echo "Running deployment..."
9
+ npm run deploy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vighnalabs-packages/utilities",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/test DELETED
@@ -1 +0,0 @@
1
- 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