Skip to content

Commit

Permalink
Nicer artifact filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Jan 27, 2020
1 parent ebf30e1 commit e87af32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
uses: actions/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
name: tikzcd-editor
name: tikzcd-editor-dist
path: ./dist
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.nyc_output/
node_modules/
dist/tikzcd-editor/
dist/*.zip
dist/
bundle.js
bundle.js.map
5 changes: 4 additions & 1 deletion ci/createArtifact.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e87af32

Please sign in to comment.