Skip to content

Commit

Permalink
chore: made release version required (#150)
Browse files Browse the repository at this point in the history
* chore: made release version required

* chore: added Git and NPM user configuration for release
  • Loading branch information
justin-fiedler authored Oct 15, 2021
1 parent ef1a0dc commit 93b9eab
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
workflow_dispatch:
inputs:
packageVersion:
description: "The version to publish (e.g. prerelease, patch, major). Defaults to lerna conventional commits."
required: false
default: ""
description: "The version to publish (e.g. prerelease, patch, major, 1.2.3)"
required: true
distTag:
description: "The dist-tag to publish (e.g. latest, beta)"
required: true
Expand Down Expand Up @@ -56,6 +55,16 @@ jobs:
- name: Test
run: yarn test

- name: Configure Git User
run: |
git config --global user.name amplitude-sdk-bot
git config --global user.email [email protected]
- name: Configure NPM User
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ~/.npmrc
npm whoami
- name: Publish to NPM
run: |
lerna publish ${{ env.PACKAGE_VERSION }} --dist-tag ${{ env.DIST_TAG }} --yes
Expand Down

0 comments on commit 93b9eab

Please sign in to comment.