Skip to content

Commit

Permalink
Update package.json file (#7)
Browse files Browse the repository at this point in the history
* update things

* set yarn version to 3.6.2

* downgrade framework module

* fix errors

* update package file

* update the deploy actions
  • Loading branch information
jabahum authored Jan 30, 2024
1 parent c683a39 commit abdce40
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
name: UgandaEMR CI

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
release:
types:
- created

env:
ESM_NAME: "@ugandaemr/esm-patient-appointments-app"
JS_NAME: "esm-ugandaemr-patient-appointments-app.js"

jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_API: "http://127.0.0.1:9080"
TURBO_API: 'http://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }}
TURBO_TEAM: ${{ github.repository_owner }}

Expand All @@ -36,11 +34,11 @@ jobs:
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Setup local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v2
with:
Expand All @@ -59,16 +57,14 @@ jobs:
pre_release:
runs-on: ubuntu-latest

needs: build

if: ${{ github.event_name == 'push' }}

steps:
- uses: actions/checkout@v3

- name: Download Artifacts
uses: actions/download-artifact@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -85,7 +81,7 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- name: Setup local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v2
with:
Expand Down Expand Up @@ -124,7 +120,8 @@ jobs:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Use Node.js

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
Expand All @@ -136,12 +133,18 @@ jobs:
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --immutable

- run: yarn turbo build --color
- run: yarn run ci:publish

- name: Setup local cache server for Turborepo
uses: felixmosh/turborepo-gh-artifacts@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ${{ secrets.TURBO_SERVER_TOKEN }}

- run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit abdce40

Please sign in to comment.