Skip to content

Commit

Permalink
fix(ci): fix invalid version
Browse files Browse the repository at this point in the history
  • Loading branch information
laggage authored Dec 25, 2021
1 parent 49e19f1 commit be5a10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/vsce-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- run: echo "VERSION=${GITHUB_REF#refs/*/}" | sed 's/v//' >> $GITHUB_ENV
- run: echo "version:\ ${{ env.VERSION }}"
- run: npm i -g vsce
- run: sed -i 's/\"version\":\ \"[0-9]\.[0-9]\.[0-9]\"/\"version\":\ \"${{ env.VERSION }}\"/' package.json
Expand Down

0 comments on commit be5a10e

Please sign in to comment.