Skip to content

Commit

Permalink
[ci] fix version generated by versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jkb0o committed Mar 2, 2021
1 parent 6526bea commit d2e1793
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: |
export VERSION="${{ github.ref }}"
export VERSION="${VERSION:1}"
export VERSION=$(echo "${{ github.ref }}" | sed "s|refs/tags/v||")
echo "export const STRING = \"$VERSION\"" > src/lib/version.ts
- run: npm run build
- name: Upload node files
Expand Down

0 comments on commit d2e1793

Please sign in to comment.