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

38 lines
970 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
2019-10-15 23:24:13 +02:00
- name: Setup Node.js ${{ matrix.node-version }}
2019-10-15 22:43:36 +02:00
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
2019-10-15 23:11:22 +02:00
- name: Publish
run: |
2019-10-16 03:15:33 +02:00
# VERSION=$(echo ${{github.ref}} | tail -c +20)-preview.$PREVIEW_VERSION
PREVIEW_VERSION=$(git rev-list --count --first-parent HEAD)
VERSION=8.4.0-preview.$PREVIEW_VERSION
2019-10-15 23:11:22 +02:00
echo $VERSION
2019-10-15 23:28:16 +02:00
npm version --no-git-tag-version --allow-same-version $VERSION
2019-10-16 02:40:09 +02:00
npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
2019-10-16 02:44:22 +02:00
npm set registry https://npm.pkg.github.com/knsv
2019-10-16 02:54:11 +02:00
npm publish --dry-run
2019-10-15 23:11:22 +02:00