Skip to content

docs(readme): update emq x -> emqx #45

docs(readme): update emq x -> emqx

docs(readme): update emq x -> emqx #45

Workflow file for this run

name: Node.js Package Publish
on:
push:
tags:
- "*"
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.15'
- name: yarn install
run: yarn install
- name: yarn lib
run: |
yarn lib
zip -rq emqx-ui.zip ./lib
- id: publish
if: startsWith(github.ref, 'refs/tags/')
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: publish
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: EMQ X UI ${{ github.ref }} Released
draft: false
prerelease: false
- name: Upload Release Asset
if: startsWith(github.ref, 'refs/tags/')
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./emqx-ui.zip
asset_name: emqx-ui.zip
asset_content_type: application/zip