diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c6d5408..ba6cb5c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -30,5 +30,5 @@ jobs: uses: actions/upload-artifact@v1.0.0 if: startsWith(github.ref, 'refs/tags/') with: - name: tikzcd-editor + name: tikzcd-editor-dist path: ./dist diff --git a/.gitignore b/.gitignore index e2a9d71..136cb6a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .nyc_output/ node_modules/ -dist/tikzcd-editor/ -dist/*.zip +dist/ bundle.js bundle.js.map diff --git a/ci/createArtifact.js b/ci/createArtifact.js index 88c0c52..a797f53 100644 --- a/ci/createArtifact.js +++ b/ci/createArtifact.js @@ -8,7 +8,10 @@ const rimraf = require('rimraf') const {version} = require('../package.json') async function createArtifact() { - let artifactFolder = path.resolve(__dirname, '../dist/tikzcd-editor') + let artifactFolder = path.resolve( + __dirname, + `../dist/tikzcd-editor-v${version}` + ) if (fs.existsSync(artifactFolder)) { rimraf.sync(artifactFolder)