-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: made release version required (#150)
* chore: made release version required * chore: added Git and NPM user configuration for release
- Loading branch information
1 parent
ef1a0dc
commit 93b9eab
Showing
1 changed file
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|