Skip to content

Releases: JasonEtco/build-and-tag-action

v2.0.1

21 Dec 19:52
dd5e499
Compare
Choose a tag to compare

Just updates some bits, including the underlying Node version for the Action.

v2.0.0

01 Mar 21:26
5220ac2
Compare
Choose a tag to compare

Version 2! This has one major breaking change - the setup input has been removed due to limitations of the Actions runtime. But that's okay, you probably weren't using it anyway, since the default value was broken, and Actions lets you add your own setups anyway! See #16 for more details.

v1.2.0

04 Feb 19:59
440ffe8
Compare
Choose a tag to compare

Adds support for updating minor version tag, see #15 for all the deets 馃帀

v1.1.4

12 Nov 17:39
d994c4c
Compare
Choose a tag to compare

Updates some dependencies, nothing special!

v1.1.3

23 Aug 06:04
f653431
Compare
Choose a tag to compare

Updates some dependencies, nothing special!

v1.1.2

07 Jun 23:16
542e91e
Compare
Choose a tag to compare

Fixes an issue with the default setup script. See #5 and #4 for more information!

v1.1.1

16 May 23:18
816b401
Compare
Choose a tag to compare

Adds more logging to the output!

v1.1.0

15 May 21:43
464e5e7
Compare
Choose a tag to compare

Adds support for the tag_name input, which will let this action support multiple events instead of just release!

v1.0.0

15 May 18:53
56c3b57
Compare
Choose a tag to compare

A GitHub Action for publishing JavaScript Actions! It's designed to act on new releases, and updates the tag with a compiled JS file, using @zeit/ncc. The process looks like this:

  • Runs the setup input (default: npm ci && npm run build)
  • Reads the main property in your package.json
  • Force pushes action.yml and the above file to the release's tag
  • Force pushes to the major version tag (ex: v1.0.0 -> v1)

image

This repository even uses it! @zeit/ncc supports TypeScript out of the box 馃槏

Usage

name: Publish

on:
  release:
    types: [published, edited]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          ref: ${{ github.event.release.tag_name }}
      - uses: JasonEtco/build-and-tag-action@v1
        env:
          GITHUB_TOKEN: ${{ github.token }}

Options

setup

You can customize the setup script that's run before pushing the files to the tag.

- uses: JasonEtco/build-and-tag-action@v1
  with:
    setup: 'npm ci && npm run super-build'
  env:
    GITHUB_TOKEN: ${{ github.token }}

Motivation

The guide to JavaScript Actions recommends including node_modules in your repository, and manual steps to following the versioning recommendations. There are anti-patterns there that just don't sit right with me; so we can enable the same workflow, automatically!

This Action is heavily inspired by mheap/github-action-auto-compile-node & Actions-R-Us/actions-tagger. This is more or less a combination of those two Actions, meant to work together.

v0.0.7

14 May 07:04
Compare
Choose a tag to compare
v0.0.7 Pre-release
Pre-release
Remove extra dev script