1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-27 13:22:15 +00:00
dependabot[bot] 87363cce0f
Bump actions/setup-node from 1 to 2.4.1 (#75)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 2.4.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...v2.4.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Avior <github@avior.me>
2021-09-30 11:25:45 +02:00

46 lines
1.0 KiB
YAML

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Compile
on:
push:
branches:
- master
paths:
- 'data/**'
- 'legals.ts'
pull_request:
jobs:
test:
name: Compilation Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v2.4.1
with:
node-version: 16.x
- name: Install packages
run: npm ci
- name: Build the database
run: npm run compile
push:
name: Launch the compiler
needs: test
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: Compiler Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAC }}
repository: tcgdex/compiler
event-type: card-database-update