Pokebag/data-sdk

View on GitHub
.github/workflows/release.yml

Summary

Maintainability
Test Coverage
name: GH Actions - Release
on:
  workflow_run:
    workflows: ['GH Actions - Test']
    branches:
      - 'main'
      - 'v*.x.x'
    types:
      - completed

jobs:
  release:
    name: Release
    runs-on: ubuntu-20.04

    steps:
      - name: Checkout
        uses: actions/checkout@v1

      - name: Setup Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 14

      - name: Install dependencies
        run: yarn

      - name: Release
        run: yarn semantic-release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}