Skip to content

Commit

Permalink
fix: fixed packages deploy action - added Git user info
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Ezesinachi <ezesinachijim@gmail.com>
  • Loading branch information
jimezesinachi committed Apr 11, 2024
1 parent c377c87 commit 600c6e3
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 36 deletions.
76 changes: 41 additions & 35 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,44 @@ jobs:

- name: Install dependencies
run: echo "Continuous Deployment!"
# build:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v2

# - name: Set up database
# run: |
# chmod +x ./setup-db.bash
# ./setup-db.bash

# - name: Cache yarn dependencies
# uses: actions/cache@v2
# with:
# path: |
# **/node_modules
# .yarn/cache
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

# - name: Install dependencies
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: yarn install

# - name: Run CI tasks
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: yarn ci

# - name: Publish package to NPM
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: yarn pub
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up database
run: |
chmod +x ./setup-db.bash
./setup-db.bash
- name: Cache yarn dependencies
uses: actions/cache@v2
with:
path: |
**/node_modules
.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn install

- name: Run CI tasks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn ci

- name: Set Git user name
run: git config --global user.name "Fernando Hurtado"

- name: Set Git user email
run: git config --global user.email "fernandohur@gmail.com"

- name: Publish package to NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn pub
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@synthql/root",
"type": "module",
"version": "0.26.4",
"version": "0.27.4",
"license": "MIT",
"private": true,
"workspaces": [
Expand Down

0 comments on commit 600c6e3

Please sign in to comment.