Skip to content

Commit

Permalink
add artifacts to .gitignore and use process.cwd() instead of __dirname (
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel authored Nov 13, 2020
1 parent 9db42e0 commit 80e30fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gutenberg.zip
phpcs.xml
yarn.lock
/wordpress
/artifacts

playground/dist
.cache
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/config/setup-debug-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
const fs = require( 'fs' );
const util = require( 'util' );
const root = process.env.GITHUB_WORKSPACE || __dirname + '/../../../';
const root = process.env.GITHUB_WORKSPACE || process.cwd();
const ARTIFACTS_PATH = root + '/artifacts';

const writeFile = util.promisify( fs.writeFile );
Expand Down

0 comments on commit 80e30fd

Please sign in to comment.