Skip to content

Commit

Permalink
Use npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed Feb 15, 2024
1 parent 9fca07b commit a896fd4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "yarn"
cache-dependency-path: functions/yarn.lock
cache: npm
cache-dependency-path: functions/package-lock.json

- name: Install global NPM tools
run: |
yarn global add firebase-tools@latest
npm install -g firebase-tools@latest
firebase --version
- run: yarn --cwd functions install
- run: npm ci --prefix functions # Use npm ci for faster installs

- run: yarn --cwd functions build
- run: npm run build --prefix functions

- name: Run testing
run: yarn --cwd functions test:${{ matrix.type }}
run: npm run test:${{ matrix.type }} --prefix functions

publish:
name: Publish
Expand All @@ -56,12 +56,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: functions/yarn.lock
cache: npm
cache-dependency-path: functions/package-lock.json

- name: Install global NPM tools
run: |
yarn global add firebase-tools@latest
npm install -g firebase-tools@latest
firebase --version
# The variable `FIREBASE_SA` must be a base64 encoded string
Expand All @@ -72,9 +72,9 @@ jobs:
echo "GOOGLE_APPLICATION_CREDENTIALS=$(pwd)/service_account.json" >> $GITHUB_ENV
echo ${{ secrets.FIREBASE_SA }} | base64 -d -i - > service_account.json
- run: yarn --cwd functions install
- run: npm ci --prefix functions

- run: yarn --cwd functions build
- run: npm run build --prefix functions

- run: >-
firebase ext:dev:upload
Expand All @@ -89,4 +89,4 @@ jobs:
with:
name: debug-log-functions
path: firebase-debug.log
if-no-files-found: ignore
if-no-files-found: ignore

0 comments on commit a896fd4

Please sign in to comment.