fix: release-preview-publish.yml

This commit is contained in:
Sidharth Vinod 2022-11-16 00:06:47 +05:30
parent d05fd25339
commit 3358406e68
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 11 additions and 5 deletions

View File

@ -10,21 +10,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: 18.x
- name: Install Yarn
run: npm i yarn --global
- name: Install Packages
run: |
pnpm install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Install Json
run: npm i json --global
- name: Install Packages
run: yarn install --frozen-lockfile
- name: Publish
run: |
cd packages/mermaid
PREVIEW_VERSION=8
VERSION=$(echo ${{github.ref}} | tail -c +20)-preview.$PREVIEW_VERSION
echo $VERSION