Skip to content

Commit 42bbdd4

Browse files
committed
Updated workflows and README
1 parent 6ffbaeb commit 42bbdd4

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
name: Node CI
1+
name: CI
22

33
on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
strategy:
119
matrix:
12-
node-version: [14.x, 16.x]
10+
node-version: [lts/-1, lts/*]
1311

1412
steps:
15-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v4
1614
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@v4
1816
with:
1917
node-version: ${{ matrix.node-version }}
2018
- name: npm install
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
12-
- uses: actions/setup-node@v1
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 14
14+
node-version: lts/*
1515
- run: npm install --ignore-scripts
1616
- run: npm test
1717

1818
publish-npm:
1919
needs: build
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v1
23-
- uses: actions/setup-node@v1
22+
- uses: actions/checkout@v4
23+
- uses: actions/setup-node@v4
2424
with:
25-
node-version: 14
25+
node-version: lts/*
2626
registry-url: https://registry.npmjs.org/
2727
- run: npm install --ignore-scripts
2828
- run: npm publish --access public

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
![](https://github.com/LimeEng/NodeSemaphore/workflows/Node%20CI/badge.svg)
1+
![](https://github.com/LimeEng/NodeSemaphore/actions/workflows/ci.yaml/badge.svg)
22
[![npm (scoped)](https://img.shields.io/npm/v/@limeeng/semaphore.svg)](https://www.npmjs.com/package/@limeeng/semaphore)
33

44
# Node Semaphore
55

6-
What is a semaphore? A great explanation is available at [Wikipedia](https://en.wikipedia.org/wiki/Semaphore_(programming)).
7-
It is basically a simple way to control access to resources in concurrent systems. One might think that there is no need for semaphores in JavaScript since it is single-threaded by nature, but in some cases it is absolutely necessary. Race conditions can still manifest and there are several legitimate reasons for wanting to throttle concurrency when working with asynchronous systems.
6+
[Semaphores](https://en.wikipedia.org/wiki/Semaphore_(programming) can be used to control access to resources in concurrent systems. While JavaScript is inherently single-threaded, semaphores can still help manage asynchronous operations and prevent issues like resource contention.
87

98
- [Installation](#install)
109
- [API](#api)

0 commit comments

Comments
 (0)