mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
49 lines
1014 B
YAML
49 lines
1014 B
YAML
name: Build alpha release package
|
|
|
|
on: push
|
|
#on:
|
|
# push:
|
|
# branches:
|
|
# - 'release/**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [10.x]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install Yarn
|
|
run: npm i yarn --global
|
|
|
|
- name: Install Packages
|
|
run: yarn install
|
|
|
|
- name: Build
|
|
run: yarn build
|
|
|
|
#- name: Test
|
|
# run: yarn test
|
|
|
|
#- name: E2E Test
|
|
# run: yarn e2e
|
|
|
|
#- name: E2E Test
|
|
# run: yarn e2e
|
|
|
|
- name: Publish
|
|
run: |
|
|
# VERSION=$(echo ${{github.ref}} | tail -c +20)
|
|
VERSION=8.4.0
|
|
echo $VERSION
|
|
npm version --no-git-tag-version $VERSION
|
|
npm login --registry=https://npm.pkg.github.com/
|
|
npm config set registry https://npm.pkg.github.com/knsv
|
|
npm publish --tag alpha --dry-run
|
|
|