forked from team-supercharge/nest-amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add release workflow for github releases
- Loading branch information
Showing
3 changed files
with
14 additions
and
17 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 |
---|---|---|
|
@@ -20,18 +20,6 @@ jobs: | |
run: ./node_modules/.bin/commitlint --from $(git merge-base --fork-point master) --verbose | ||
- name: Lint | ||
run: npm run lint | ||
- name: Lint | ||
uses: wearerequired/[email protected] | ||
with: | ||
continue_on_error: false | ||
auto_fix: false | ||
neutral_check_on_warning: false | ||
eslint: true | ||
eslint_args: src/**/*.ts | ||
eslint_extensions: ts | ||
prettier: true | ||
prettier_args: src/**/*.ts | ||
prettier_extensions: ts | ||
- name: Test | ||
run: | | ||
npm test | ||
|
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
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
set -euo pipefail | ||
|
||
# configure Git user and e-mail for the release commit | ||
git config user.name "supercharge-bot" | ||
git config user.email [email protected] | ||
git config user.name "zenobe-bot" | ||
git config user.email [email protected] | ||
|
||
# generate changelog and new version number then create a release commit | ||
npm run release | ||
|
@@ -19,7 +19,7 @@ mkdir -p ~/.ssh/ | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
|
||
# push the release commit and the new tag to the upstream | ||
git push --follow-tags [email protected]:team-supercharge/nest-amqp.git master | ||
git push --follow-tags [email protected]:zenobeenergy/nest-amqp.git master | ||
|
||
# delete all manually added SSH keys | ||
ssh-add -D | ||
|
@@ -42,7 +42,7 @@ cp package.json README.md LICENSE dist/ | |
cd dist | ||
|
||
# add auth token | ||
echo "//registry.npmjs.org/:_authToken=${NPM_LOGIN_TOKEN}" > .npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${NPM_LOGIN_TOKEN}" > .npmrc | ||
|
||
# publish the package to NPM | ||
npm publish | ||
|