Skip to content

Commit

Permalink
fix wf
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheidudko committed Oct 16, 2024
1 parent 85b8202 commit d6c9e99
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 78 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,45 @@ jobs:
with:
name: lib
path: ${{ github.workspace }}/lib
test:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: build
strategy:
matrix:
node-version: [20.x, 22.x]
steps:
- name: Сheckout repo
uses: actions/checkout@v4
- name: Unarchiving lib directory
uses: actions/download-artifact@v4
with:
name: lib
path: ${{ github.workspace }}/lib
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Run test
run: npm run cov
deploy:
if: ${{ !endsWith(env.RELEASE_VERSION, '-beta') }}
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build]
needs: [build, test]
env:
NODE_VERSION: 22
steps:
Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/build-and-test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protoobject",
"version": "1.0.0",
"version": "1.0.1",
"description": "A universal class for creating any JSON objects and simple manipulations with them.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit d6c9e99

Please sign in to comment.