mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
37 lines
868 B
YAML
37 lines
868 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: Publish
|
|
run: |
|
|
# VERSION=$(echo ${{github.ref}} | tail -c +20)-preview
|
|
VERSION=8.4.0-preview
|
|
echo $VERSION
|
|
npm version --no-git-tag-version --allow-same-version $VERSION
|
|
npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
|
|
npm set registry https://npm.pkg.github.com/knsv
|
|
npm publish --dry-run
|
|
|