Skip to content

Commit

Permalink
[ci-change] update version in package.json error fix
Browse files Browse the repository at this point in the history
**Phenomenon and reproduction steps**

none

**Root cause and solution**

none

**Impactions**

none

**Test method**

none

**Affected branch(es)**

- main

**Checklist**

- [ ] Dependencies update required
- [ ] Common bug (similar problem in other repo)
  • Loading branch information
twou12031 committed Nov 27, 2023
1 parent bfd1970 commit f936790
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -39,14 +39,6 @@ jobs:
echo "IMAGE_TAG_PREFIX=${{ github.ref_name }}"|sed 's|main|latest|' >> $GITHUB_ENV
echo "IMAGE_TAG=$(git rev-list --count HEAD)" >> $GITHUB_ENV
- name: Update Version
run: |
files=(package.json */package.json)
version=${{ env.IMAGE_TAG_PREFIX }}
for file in "${files[@]}"; do
sed -i "s/\"version\": \".*\"/\"version\": \"$version\"/" $file
done
- name: Setup Yarn
uses: DerYeger/yarn-setup-action@master
with:
@@ -72,10 +64,18 @@ jobs:
- name: Review plugin.json
run: cat ./deepflow-querier-datasource/src/plugin.json


- name: Install All Dependencies
run: 'test -d deepflow-apptracing-panel/dist || yarn install:all'

- name: Update Version
run: |
files=(package.json */package.json)
version=${{ env.IMAGE_TAG_PREFIX }}
version=${version#v}
for file in "${files[@]}"; do
sed -i "s/\"version\": \".*\"/\"version\": \"$version\"/" $file
done
- name: Build All Plugins
run: 'test -d deepflow-apptracing-panel/dist || yarn build:all'

0 comments on commit f936790

Please sign in to comment.