Skip to content

Commit

Permalink
fix: npm publish CI job lacked TZ environment which broke CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycallin committed Feb 22, 2023
1 parent 49f4a21 commit 25475aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Europe/Stockholm
steps:
- uses: actions/checkout@v3
- name: Using Node.js from .nvmrc
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- "v*"

env:
TZ: Europe/Stockholm

jobs:
cd:
name: Publish to NPM
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineConfig({
test: {
environment: "jsdom",
globals: true,
globalSetup: "./vitest.globalsetup.js",
setupFiles: ["./vitest.setup.js"],
deps: {
fallbackCJS: true,
Expand Down
3 changes: 3 additions & 0 deletions vitest.globalsetup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const setup = () => {
process.env.TZ = "Europe/Stockholm";
};

0 comments on commit 25475aa

Please sign in to comment.