Skip to content

Commit 6249e12

Browse files
committed
ci: removed tags from the arc deploy script
1 parent 73d39ff commit 6249e12

File tree

5 files changed

+16
-27
lines changed

5 files changed

+16
-27
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ jobs:
4343
run: pnpm build
4444
- name: 📦 Deploy Production
4545
if: github.ref_name == 'main'
46-
run: pnpm exec arc deploy --production --name main -t production -v
46+
run: pnpm exec arc deploy --production --name main -v
4747
env:
4848
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4949
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5050
- name: 📦 Deploy ${{ github.ref_name }}
5151
if: github.ref_name != 'main'
52-
run: pnpm exec arc deploy --name ${{ github.ref_name }} -t ${{ github.ref_name }} -v
52+
run: pnpm exec arc deploy --name ${{ github.ref_name }} -v
5353
env:
5454
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
5555
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

src/sessionStorage.server.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ describe('The session storage', () => {
1616
});
1717

1818
it('returns the configured one', async () => {
19-
delete process.env.SESSION_SECRET;
2019
process.env.NODE_ENV = 'development';
2120
vi.mocked(createCookieSessionStorage).mockReturnValue('mocked cookie' as never);
2221
const { getSessionStorage } = await import ('~/sessionStorage.server');

src/split.server.test.ts

-23
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,6 @@ describe('The split client', () => {
1717
vi.resetAllMocks();
1818
});
1919

20-
it('set the defaults', async () => {
21-
delete process.env.SPLIT_SERVER_TOKEN;
22-
process.env.NODE_ENV = 'production';
23-
vi.mocked(SplitFactory).mockReturnValue({
24-
client: vi.fn().mockReturnValue('client')
25-
} as never);
26-
27-
const client = (await import('./split.server')).default;
28-
29-
const calls = vi.mocked(SplitFactory).mock.calls;
30-
31-
expect(client).toEqual('client');
32-
expect(calls[0][0]).toMatchInlineSnapshot(`
33-
{
34-
"core": {
35-
"authorizationKey": "localhost",
36-
},
37-
"debug": false,
38-
"features": "/cwd/sub/devFeatures.yml",
39-
}
40-
`);
41-
});
42-
4320
it('set the environments', async () => {
4421
process.env.SPLIT_SERVER_TOKEN = 'token';
4522
process.env.NODE_ENV = 'development';

src/split.server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SplitFactory } from '@splitsoftware/splitio/server';
33
// eslint-disable-next-line new-cap
44
const splitFactory = SplitFactory({
55
core: {
6-
authorizationKey: process.env.SPLIT_SERVER_TOKEN || 'localhost'
6+
authorizationKey: process.env.SPLIT_SERVER_TOKEN
77
},
88
debug: process.env.SPLIT_DEBUG === 'true',
99
features: path.resolve(process.cwd(), '../devFeatures.yml')

types/globals.d.ts

+13
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@ declare global {
1515
appConfig: AppConfig;
1616
locale: strin;
1717
}
18+
19+
namespace NodeJS {
20+
interface ProcessEnv {
21+
COOKIEYES_TOKEN: string;
22+
HOTJAR_ID: string;
23+
MIXPANEL_API: string;
24+
MIXPANEL_TOKEN: string;
25+
NODE_ENV: string;
26+
SESSION_SECRET: string | undefined
27+
SPLIT_SERVER_TOKEN: string;
28+
I18N_DEBUG: string;
29+
}
30+
}
1831
}
1932

2033
export {};

0 commit comments

Comments
 (0)