mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-28 11:21:06 -05:00
24 lines
No EOL
449 B
YAML
24 lines
No EOL
449 B
YAML
name: ci
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Node.js v12
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
|
|
- name: Set up node modules
|
|
run: npm ci
|
|
|
|
- name: Execute tests
|
|
run: npm run test
|
|
env:
|
|
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
|
|
|
- name: Build artifacts
|
|
run: npm run build |