Skip to content

Commit

Permalink
fix(build): update package to build after release
Browse files Browse the repository at this point in the history
  • Loading branch information
srowhani committed Nov 30, 2018
1 parent 70098a1 commit 55d0c86
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ script:
- yarn test
- yarn build
after_success:
- npm run travis-deploy-once "npm run semantic-release"
- yarn travis-deploy-once "yarn semantic-release && yarn build"
branches:
only:
- master
Expand Down
18 changes: 18 additions & 0 deletions scripts/generate-versions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node
const fs = require('fs')
const fetch = require('node-fetch')

;(async () => {
const repoTags = await fetch('https://api.github.com/repos/srowhani/ember-artisans/tags')
.then(response => response.json())

const repoMapping = repoTags.reduce(
(acc, { name, commit }) => ({
...acc,
[name]: commit
})
, {})

fs.writeFileSync('./tests/dummy/public/versions.json', JSON.stringify(repoMapping, null, 2))
})()

0 comments on commit 55d0c86

Please sign in to comment.