Skip to content

Commit

Permalink
ci: use correct env var name and remove npm token
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Jan 9, 2025
1 parent 59b4ab3 commit 0c4ffca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
node-version: ${{ matrix.node }}
registry-url: "https://registry.npmjs.org/"
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run build
Expand Down
6 changes: 3 additions & 3 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ declare global {
namespace NodeJS {
interface ProcessEnv {
CI: boolean;
PLAYWRIGHT_PRISMIC_USERNAME: string;
PLAYWRIGHT_PRISMIC_EMAIL: string;
PLAYWRIGHT_PRISMIC_PASSWORD: string;
}
}
}

assert.ok(
process.env.PLAYWRIGHT_PRISMIC_USERNAME,
"Missing PLAYWRIGHT_PRISMIC_USERNAME env variable.",
process.env.PLAYWRIGHT_PRISMIC_EMAIL,
"Missing PLAYWRIGHT_PRISMIC_EMAIL env variable.",
);
assert.ok(
process.env.PLAYWRIGHT_PRISMIC_PASSWORD,
Expand Down
2 changes: 1 addition & 1 deletion tests/infra/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const test = base.extend<Fixtures>({
const prismic = new Prismic({
baseURL: "https://prismic.io",
auth: {
email: process.env.PLAYWRIGHT_PRISMIC_USERNAME,
email: process.env.PLAYWRIGHT_PRISMIC_EMAIL,
password: process.env.PLAYWRIGHT_PRISMIC_PASSWORD,
},
request: page.request,
Expand Down

0 comments on commit 0c4ffca

Please sign in to comment.