Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MelvinVermeer committed Apr 19, 2021
1 parent 942471e commit 8607933
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- run: |
sudo apt update
sudo apt install jq -y
- run: |
git config --local user.email "[email protected]"
git config --local user.name "Melvin Vermeer [ci]"
jq --arg version ${GITHUB_REF#refs/tags/} '.version = $version' package.json > package.json.tmp
jq --arg version $${{ env.RELEASE_VERSION }} '.version = $version' package.json > package.json.tmp
mv package.json.tmp package.json
git add package.json
git commit --no-verify -m "update package version ${GITHUB_REF#refs/tags/} [skip ci]"
git commit --no-verify -m "update package version ${{ env.RELEASE_VERSION }} [skip ci]"
- run: npm publish
env:
Expand Down

0 comments on commit 8607933

Please sign in to comment.