Skip to content

Commit

Permalink
fix: test env location
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed Sep 5, 2023
1 parent a73c1fb commit 7422fb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- name: Create .env file
run: |
echo "RUDDER_STACK_KEY=1" > .env
echo "RUDDER_STACK_KEY=2" > ./bin/.env
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions src/utils/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import RudderAnalytics from "@rudderstack/rudder-sdk-node";
import * as dotenv from "dotenv";
import dotenv from "dotenv";
import { machineId } from "node-machine-id";

import type { apiObject } from "@rudderstack/rudder-sdk-node";
import path from "path";

dotenv.config();
const envPath = path.join(__dirname, '../../', '.env');
dotenv.config({ path: envPath });

console.log("test", process.env.RUDDER_STACK_KEY!);

Expand Down

0 comments on commit 7422fb8

Please sign in to comment.