Skip to content

Commit

Permalink
replace manifest in build
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed May 28, 2024
1 parent 6df4018 commit c7303ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:
with:
node-version: 16
- name: Install modules
run: yarn
run: |
sudo apt install jq
yarn
VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//')
jq --arg version $VERSION '.version = $version' src/manifest.json > src/manifest.json.tmp
mv src/manifest.json.tmp src/manifest.json
- name: Build Chrome
run: |
VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//') yarn build:chrome
Expand Down

0 comments on commit c7303ff

Please # to comment.