Skip to content

Commit

Permalink
chore(ci-cd): remove hardcoded values in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshamavani committed Dec 14, 2023
1 parent 8ce73c9 commit 08ba53b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08ba53b

Please sign in to comment.