1.2.5 • Published 3 years ago

@boilerz/action-release v1.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@boilerz/action-release

GH CI Action codecov

Github action for release and publish packages

Usage

See action.yml

Basic:

on:
  push:
    tags:
      - 'v*'

  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
          with:
            token: ${{ secrets.GH_BOT_TOKEN }} # Bot token if branch is protected
      - uses: actions/setup-node@v2
        with:
          node-version: '12.x'
    
      - uses: boilerz/action-release@master
        if: github.ref == 'refs/heads/master' 
        with:
          publishDirectory: 'dist'
          buildStep: 'true'
        env:
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_EMAIL: ${{ secrets.GITHUB_EMAIL }}
          GITHUB_USER: ${{ secrets.GITHUB_USER }}