-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci-cd): remove hardcoded values in release workflow
- Loading branch information
1 parent
8ce73c9
commit 08ba53b
Showing
1 changed file
with
9 additions
and
5 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 |
---|---|---|
|
@@ -15,27 +15,31 @@ jobs: | |
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '16.x' | ||
node-version: '18.x' | ||
- name: Configure CI Git User | ||
run: | | ||
git config --global user.name '@yeshamavani' | ||
git config --global user.email '[email protected]' | ||
git config --global user.name $CONFIG_USERNAME | ||
git config --global user.email $CONFIG_EMAIL | ||
git remote set-url origin https://$GITHUB_ACTOR:[email protected]/sourcefuse/workflows-creator | ||
env: | ||
GITHUB_PAT: ${{ secrets.RELEASE_COMMIT_GH_PAT }} | ||
CONFIG_USERNAME: ${{ vars.RELEASE_COMMIT_USERNAME }} | ||
CONFIG_EMAIL: ${{ vars.RELEASE_COMMIT_EMAIL }} | ||
- name: Authenticate with Registry | ||
run: | | ||
echo "@yeshasf:registry=https://registry.npmjs.org/" > .npmrc | ||
echo "@${NPM_USERNAME}:registry=https://registry.npmjs.org/" > .npmrc | ||
echo "registry=https://registry.npmjs.org/" >> .npmrc | ||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | ||
npm whoami | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_USERNAME: ${{ vars.NPM_USERNAME }} | ||
|
||
- name: Bootstrap | ||
run: | | ||
npm ci | ||
npx lerna bootstrap | ||
npm i -g [email protected] | ||
lerna bootstrap | ||
- name: Test | ||
run: npx lerna run test | ||
- name: Stash Changes | ||
|