Skip to content

Commit a89c8c4

Browse files
Bumbped version to 1.0.2.
Added cicd github action.
1 parent 975507a commit a89c8c4

File tree

5 files changed

+22
-33
lines changed

5 files changed

+22
-33
lines changed
Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
1-
name: Publish release
1+
name: CI/CD
22

33
on:
44
push:
5-
branches: [ release ]
5+
pull_request:
66

77
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [16.x, 18.x]
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm ci
20+
- run: npm test
821
publish:
922
name: Publish
1023
runs-on: ubuntu-latest
24+
needs: test
1125
if: startsWith(github.ref, 'refs/tags/v')
1226
steps:
1327
- name: Checkout the repository
@@ -19,17 +33,17 @@ jobs:
1933
- name: Install dependencies
2034
run: npm ci
2135
- name: Publish package to NPM
22-
run: npm publish
36+
run: npm publish --access=public
2337
env:
2438
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2539
- name: Build package to upload to GitHub releases
2640
run: |
2741
npm pack
28-
mv @acpr/rate-limit-postgresql-*.tgz rate-limit-postgresql.tgz
42+
mv acpr-rate-limit-postgresql-*.tgz acpr-rate-limit-postgresql.tgz
2943
- name: Create a Github release
3044
uses: softprops/action-gh-release@v1
3145
with:
32-
files: rate-limit-postgresql.tgz
46+
files: acpr-rate-limit-postgresql.tgz
3347
body:
3448
You can view the changelog
3549
[here](https://github.com/adrianprelipcean/express-rate-limit-postgresql/blob/master/changelog.md).

.github/workflows/test.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@acpr/rate-limit-postgresql",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "A PostgreSQL store for the `express-rate-limit` middleware",
55
"homepage": "https://github.com/adrianprelipcean/express-rate-limit-postgresql",
66
"repository": "https://github.com/adrianprelipcean/express-rate-limit-postgresql",

third_party_licenses/dev_detailed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@acpr/[email protected].0": {
2+
"@acpr/[email protected].2": {
33
"licenses": "MIT",
44
"repository": "https://github.com/adrianprelipcean/express-rate-limit-postgresql",
55
"publisher": "Adrian C. Prelipcean"

third_party_licenses/production_detailed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@acpr/[email protected].0": {
2+
"@acpr/[email protected].2": {
33
"licenses": "MIT",
44
"repository": "https://github.com/adrianprelipcean/express-rate-limit-postgresql",
55
"publisher": "Adrian C. Prelipcean"

0 commit comments

Comments
 (0)