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 e6689be commit 621f19c
Show file tree
Hide file tree
Showing 5 changed files with 15,945 additions and 4,362 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@ on:

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

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

steps:
- uses: actions/checkout@v3

- name: Install dependencies
uses: borales/actions-yarn@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
cmd: install --production=false
node-version-file: '.nvmrc'
- name: Install dependencies
run: npm ci

- name: Build
uses: borales/actions-yarn@v3
with:
cmd: build
run: npm run build

- name: Install Firebird
run: |
Expand All @@ -49,5 +43,6 @@ jobs:
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)
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
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 621f19c

Please sign in to comment.