finished ci

This commit is contained in:
Christian Klemm 2019-10-16 21:57:35 +02:00
parent 04f86ef130
commit 2348f9d785
No known key found for this signature in database
GPG Key ID: 57578469FC907C48
1 changed files with 5 additions and 7 deletions

View File

@ -1,10 +1,9 @@
name: Publish release preview package
on: push
#on:
# push:
# branches:
# - 'release/**'
on:
push:
branches:
- 'release/**'
jobs:
publish:
@ -29,9 +28,8 @@ jobs:
- name: Publish
run: |
# 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
VERSION=$(echo ${{github.ref}} | tail -c +20)-preview.$PREVIEW_VERSION
echo $VERSION
npm version --no-git-tag-version --allow-same-version $VERSION
npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}