Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Use Latest Git Tag to Set NPM Version to Release
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Apr 13, 2020
1 parent c8fffec commit e0a2797
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ jobs:
git switch -c master
git config user.email "[email protected]"
git config user.name "$GITHUB_ACTOR"
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Publish
run: |
npm version --no-git-tag-version ${{ steps.get_version.outputs.VERSION }} -m "Bump version to %s"
npm version from-git -m "Update npm version for this package [ci]"
git push --set-upstream origin master
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm publish
Expand Down

0 comments on commit e0a2797

Please sign in to comment.