ci/publishElmRelease.js
async function tagElmRelease(config, context) {
  function exec(command) {
    context.logger.log(`Running: ${command}`);
    execSync(command);
  }

  const elmPackageJson = JSON.parse(fs.readFileSync('elm.json'));
  await tag(elmPackageJson.version);
  const repositoryUrl = await getGitAuthUrl(config);
  await push(repositoryUrl, config.branch);

  exec(`elm publish`);

  return {
    name: 'Elm release',
    url:
      'http://package.elm-lang.org/packages/cultureamp/elm-css-modules-loader/' +
      elmPackageJson.version,
  };
}
async function tagElmRelease(config, context) {
  function exec(command) {
    context.logger.log(`Running: ${command}`);
    execSync(command);
  }

  const elmPackageJson = JSON.parse(fs.readFileSync('elm.json'));
  await tag(elmPackageJson.version);
  const repositoryUrl = await getGitAuthUrl(config);
  await push(repositoryUrl, config.branch);

  exec(`elm publish`);

  return {
    name: 'Elm release',
    url:
      'http://package.elm-lang.org/packages/cultureamp/elm-css-modules-loader/' +
      elmPackageJson.version,
  };
}
async function tagElmRelease ( config , context ) { function exec ( command ) { context . logger . log ( ` ${ command } ` ) ; execSync ( command ) ; } const elmPackageJson = JSON . parse ( fs . readFileSync ( 'elm.json' ) ) ; await tag ( elmPackageJson . version ) ; const repositoryUrl = await getGitAuthUrl ( config ) ; await push ( repositoryUrl , config . branch ) ; exec ( ` ` ) ; return { name : 'Elm release' , url : 'http://package.elm-lang.org/packages/cultureamp/elm-css-modules-loader/' + elmPackageJson . version , } ; }
A semantic release "publish" plugin to create tags and run `elm-package publish`.
A semantic release publish plugin to create tags and run elm - package publish .