Skip to content

Commit

Permalink
Nicer artifact filenames
Browse files Browse the repository at this point in the history
yishn committed Jan 27, 2020

Verified

This commit was signed with the committer’s verified signature.
ronnnnn Seiya Kokushi
1 parent ebf30e1 commit e87af32
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
@@ -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
@@ -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)

0 comments on commit e87af32

Please sign in to comment.