Skip to content

Commit e826b2c

Browse files
committed
publish package to npm using github actions
1 parent bcb296e commit e826b2c

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: release on npmjs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: 14
13+
registry-url: 'https://registry.npmjs.org'
14+
- run: npm ci
15+
- run: npm run build
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33

44
# TODOs:
55

6-
- Change Queue push function to async
7-
- Create Github Actions pipeline to run tests
8-
- Publish to npm
96
- SQSQueue package
107
- RedisQueue package

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "hyper-queue",
3-
"version": "0.0.1",
2+
"name": "hyperq",
3+
"version": "0.1.0",
44
"description": "generic queue processing library",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)