Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 19 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]

# on events
on:
# Trigger this manually
workflow_dispatch:

jobs:
build-and-test:
name: "Build & Test"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [16.x]
redis-version: [4, 5]
steps:
- uses: actions/checkout@v2
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start Redis
uses: supercharge/redis-github-action@1.2.0
with:
redis-version: ${{ matrix.redis-version }}
- run: yarn install
- run: yarn lint
- run: yarn test
- uses: actions/checkout@v2
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Start Redis
uses: supercharge/redis-github-action@1.2.0
with:
redis-version: ${{ matrix.redis-version }}
- run: yarn install
- run: yarn lint
- run: yarn test
39 changes: 27 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
name: Release Package
name: deploy-npm

# on events
on:
push:
tags:
- "*"
# Only trigger this manually
workflow_dispatch:

# env
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}

jobs:
build-and-publish:
name: "Build & Publish"
build-and-deploy:
# Special exception for this branch
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages

- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file

- name: Install dependencies
run: yarn install

- name: Publish
run: yarn publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage/
.idea/
node_modules/
.env
.envrc
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
package-lock=false

//npm.pkg.github.com/:_authToken=${REPO_ACCESS_TOKEN}

@gamma-app:registry=https://npm.pkg.github.com
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@gamma-app/async-redis",
"private": false,
"author": "Matthew Oaxaca",
"license": "MIT",
"version": "2.0.0",
"name": "async-redis",
"keywords": [
"redis",
"async",
Expand All @@ -13,15 +13,15 @@
"description": "Light wrapper over redis_node with first class async & promise support.",
"repository": {
"type": "git",
"url": "git://github.com/moaxaca/async-redis.git"
"url": "git://github.com/gamma-app/async-redis.git"
},
"bugs": {
"url": "https://github.com/moaxaca/async-redis/issues"
"url": "https://github.com/gamma-app/async-redis/issues"
},
"main": "src/index.js",
"typings": "src/index.d.ts",
"engines": {
"node": ">=7.6.0"
"node": ">=16.0"
},
"directories": {
"example": "examples",
Expand All @@ -38,7 +38,7 @@
"version:major": "npm version major"
},
"dependencies": {
"redis": "3.1.2"
"redis": "^3.1.2"
},
"devDependencies": {
"@types/node": "^15.6.1",
Expand Down
Loading