1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

Add support to GH Actions (#587)

* Create node.js.yml

* Update node.js.yml

* Update node.js.yml

* Update node.js.yml

* Update node.js.yml

* Create npm-publish.yml

* Update README.md

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Delete node.js.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update npm-publish.yml

* Update and rename npm-publish.yml to publish.yml

* Delete .travis.yml
This commit is contained in:
Yamel Senih 2021-02-23 16:42:56 -04:00 committed by GitHub
parent b996c4a53c
commit 7794254157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 5 deletions

44
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,44 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
# This file was contributed by Carlos Parada and Yamel Senih from ERP Consultores y Asociados, C.A
name: Publish Project
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm i
- run: npm test
- run: npm run build:prod --if-present
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build:prod --if-present
- run: ls -la
- run: ls dist/
- uses: TheDoctor0/zip-release@0.4.1
with:
filename: 'Adempiere-Vue.zip'
path: 'dist/'
- uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_ACCESS }}
with:
args: 'Adempiere-Vue.zip'

View File

@ -1,5 +0,0 @@
language: node_js
node_js: 10
script: npm run test
notifications:
email: false

View File

@ -23,6 +23,7 @@
</a>
</p>
English | [Spanish](./README.es.md)
## Introduction