Skip to content

Commit

Permalink
🏗️ Switch from yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Mar 31, 2024
1 parent d0c5e49 commit 74982ab
Show file tree
Hide file tree
Showing 4 changed files with 15,942 additions and 4,359 deletions.
31 changes: 13 additions & 18 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
timeout-minutes: 5

strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Install Firebird
run: |
Expand All @@ -34,20 +38,11 @@ jobs:
while ! nc -z localhost 3050; do sleep 1 ; done
sleep 2
- name: Install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install --production=false --ignore-scripts

- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

- name: Tests
run: |
sudo mkdir coverage
sudo chown -R firebird:firebird coverage
sudo chmod -R 777 coverage
sg firebird -c "yarn global add env-cmd; LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password yarn test"
npm install -g env-cmd
sg firebird -c "LD_LIBRARY_PATH=/usr/lib64 env-cmd -f /opt/firebird/SYSDBA.password npm run test"
bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn publish
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 74982ab

Please sign in to comment.