mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-13 15:15:53 +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:
parent
b996c4a53c
commit
7794254157
44
.github/workflows/publish.yml
vendored
Normal file
44
.github/workflows/publish.yml
vendored
Normal 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'
|
@ -1,5 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
node_js: 10
|
|
||||||
script: npm run test
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
Loading…
x
Reference in New Issue
Block a user