Skip to content

v1.8.0: Toolkit#run

Compare
Choose a tag to compare
@release-drafter release-drafter released this 27 Mar 01:04

New feature

In #63, @jclem added a new static method to the Toolkit class: #run. It takes a function argument and runs that function, as a way of enabling easier async/await patterns and modularity. Check it out!

const { Toolkit } = require('actions-toolkit')

Toolkit.run(async tools => {
  tools.log.success('We did it team!')
})

What’s Changed