Skip to content

Commit

Permalink
Update workflow build
Browse files Browse the repository at this point in the history
  • Loading branch information
morellexf13 committed Apr 27, 2023
1 parent d4999f1 commit f6d1237
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 33 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
push:
branches: [dev, main]
pull_request:
branches: [dev, main]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Run tests - Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm run test
if: endsWith(github.ref, 'main')
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/tests.yml

This file was deleted.

0 comments on commit f6d1237

Please sign in to comment.