Skip to content

Commit

Permalink
[fix] retrieve core-sdk version only for now (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBoWu authored Jan 18, 2024
1 parent 3865a87 commit 81fd248
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- main
# Triggered only when package.json is modified
paths:
- 'package.json'
# paths:
# - 'package.json'
# Triggered only the PR is merged
types: [opened, synchronize, reopened, closed]

Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Parse package.json
id: parse_package_json
run: |
content=$(cat package.json)
content=$(cat packages/core-sdk/package.json)
echo "MAIN_VERSION=$(echo $content | jq -r '.version')" >> $GITHUB_OUTPUT
# Parse version from dev branch
Expand All @@ -66,12 +66,12 @@ jobs:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: dev2
ref: dev

- name: Parse package.json
id: parse_package_json
run: |
content=$(cat package.json)
content=$(cat packages/core-sdk/package.json)
echo "DEV_VERSION=$(echo $content | jq -r '.version')" >> $GITHUB_OUTPUT
build-test-publish:
Expand Down Expand Up @@ -115,6 +115,7 @@ jobs:

- name: Publish to npm
run: |
cd packages/core-sdk
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 81fd248

Please sign in to comment.