mirror of
https://github.com/ipfs/awesome-ipfs.git
synced 2024-11-20 11:28:35 -05:00
feat: auto build without run build locally
This commit is contained in:
parent
c8e546d4b0
commit
29a9c89d0e
1 changed files with 31 additions and 0 deletions
31
.github/workflows/data.yml
vendored
Normal file
31
.github/workflows/data.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: auto build data
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- data/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: 13
|
||||
- name: build
|
||||
# env:
|
||||
run: |
|
||||
npm --version
|
||||
node --version
|
||||
npm ci
|
||||
npm run lint
|
||||
npm run build
|
||||
- name: Push changes
|
||||
if: success()
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue