Skip to content

Commit

Permalink
fix: fix package build issue (#247)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Strom <matt.strom@evolv.ai>
  • Loading branch information
mattstrom and Matt Strom authored Sep 1, 2021
1 parent f2fbcc8 commit 3923b6b
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
tags-ignore:
- '[0-9].[0-9]+.[0-9]+'

env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'

permissions:
contents: write

jobs:
build:
name: Build
Expand Down Expand Up @@ -45,30 +52,7 @@ jobs:
run: |
npm run build
release:
name: Release
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs:
- build
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16'

- name: Install Node Packages
run: |
npm ci --production=false
- name: Release
if: github.ref == 'refs/heads/master'
run: |
npx semantic-release

0 comments on commit 3923b6b

Please sign in to comment.