Skip to content

Commit 7788ac1

Browse files
author
Arun Patra
authored
Merge pull request #3 from Reloadly/develop
NPM Publish workflow
2 parents 181f0e5 + f489cb6 commit 7788ac1

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Workflow to publish to npmjs.org
2+
name: Publish Package to npmjs
3+
on:
4+
release:
5+
types: [ created ]
6+
# Allows you to run this workflow manually from the Actions tab
7+
workflow_dispatch:
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://registry.npmjs.org/'
17+
- run: npm ci
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21+

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "httpt-firewall",
2+
"name": "@prizemates/httpt-firewall",
33
"version": "0.0.1",
4-
"description": "HTTP Firewall",
4+
"description": "HTTP Firewall based on Spring Security HttpFirewall",
55
"private": false,
66
"main": "./dist/demo/demo.js",
77
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)