Skip to content

Releases: JasonEtco/actions-toolkit

v1.2.0

02 Feb 21:22
Compare
Choose a tag to compare

New features

tools.store

Your actions can store information in a file that is passed to the next actions in a workflow. It's a modified instance of flat-cache - note that the API is a little different:

tools.store.get('foo')
tools.store.set('foo', 'bar')

What’s Changed

v1.1.1

30 Jan 03:51
Compare
Choose a tag to compare

What’s Changed

v1.1.0

28 Jan 00:39
Compare
Choose a tag to compare

New feature

Bootstrap a new action by running the following:

npx actions-toolkit <name>

This will give you a Dockerfile and a .js file with actions-toolkit ready to go.

What’s Changed

v1.0.0

27 Jan 20:26
Compare
Choose a tag to compare

This release mostly centers around the Octokit client. It updates to a new major version of @octokit/rest, which puts this library more in line with their docs.

New features

tools.github.graphql

A pre-authenticated instance of @octokit/graphql, for all your GraphQL needs!

Breaking changes

tools.createOctokit() => tools.github

In practice, creating a new Octokit client isn't necessary 99% of the time, so this release changes it to be a single pre-authenticated instance.

// Before
const octokit = tools.createOctokit()
octokit.issues.create()

// After
tools.github.issues.create()

What’s Changed

v0.0.4

26 Nov 00:18
Compare
Choose a tag to compare

What’s Changed

Better documentation

All of the docs were moved out of the docs folder, and into the README. This allows for better discoverability, and while its a little more work to maintain, it's a lot easier to control.

v0.0.3

25 Nov 19:03
Compare
Choose a tag to compare

What’s Changed

Arguments

You can now access the arguments passed to your action via toolkit.arguments! This uses minimist to parse the arguments into a nicely consumable object.

v0.0.2

08 Nov 03:43
Compare
Choose a tag to compare
0.0.2