mermaid/.github/workflows/alpha-release-build.yml

48 lines
987 B
YAML
Raw Normal View History

2019-10-15 22:43:36 +02:00
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: Use 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
2019-10-15 23:19:05 +02:00
#- name: Test
# run: yarn test
2019-10-15 22:43:36 +02:00
2019-10-15 23:19:05 +02:00
#- name: E2E Test
# run: yarn e2e
2019-10-15 23:11:22 +02:00
2019-10-15 23:19:05 +02:00
#- name: E2E Test
# run: yarn e2e
2019-10-15 23:11:22 +02:00
- name: Publish
run: |
VERSION=$(echo ${{github.ref}} | tail -c +9)
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