Skip to content

Commit

Permalink
fix: set NODE_ENV as test before run test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoBatistaU committed Jul 9, 2024
1 parent 91c9f39 commit 3688285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
- name: Build for production
run: npm run production --if-present
- name: Run Test
run: npm run test:unit
env:
# Set environment to production just in case
NODE_ENV: production
# Set environment to test before run test
NODE_ENV: test
run: npm run test:unit
- name: The final publish step within dist folder
working-directory: dist
# This will publish the package and set access to public as if you had run npm access public after publishing.
Expand Down

0 comments on commit 3688285

Please sign in to comment.