mirror of
https://github.com/ipfs/awesome-ipfs.git
synced 2024-10-01 01:35:37 -04:00
Merge pull request #340 from bluelovers/pr/auto
feat: auto build without run build locally
This commit is contained in:
commit
bf16315ac3
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@v2.1.0
|
||||
- uses: actions/setup-node@v1.4.1
|
||||
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@v0.5.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user