Skip to content

Commit

Permalink
Verify does not push to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 14, 2024
1 parent 877ce32 commit 5df27e6
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@

name: Build & Test

on: push
on:
push:
branches:
- '*' # This will make sure all push events on any branch triggers this workflow.
tags:
- '*' # This will make sure tag creations also trigger the workflow.

env:
NODE_VERSION: 18.x
Expand Down Expand Up @@ -128,4 +133,30 @@ jobs:
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test
cmd: test

###########################################################################
## Commit to formio/enterprise
###########################################################################
deploy_to_test:
if: startsWith(github.ref, 'refs/tags/')
needs: [build, test]
runs-on: ubuntu-latest

steps:
- run: echo "Triggered by ${{ github.event_name }} event."
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Test
uses: borales/actions-yarn@v4
with:
cmd: release

0 comments on commit 5df27e6

Please sign in to comment.