Skip to content
Open
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
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Package to npm
on:
workflow_dispatch:
inputs:
tag:
description: "Package tag"
required: false
type: string
push:
branches:
- master
- "CU-86c1h04qk-npm-auth"
jobs:
publish:
permissions:
packages: write
pull-requests: write
contents: read
id-token: write

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://npm.pkg.github.com"
scope: "@kittl"
- name: Install package dependencies
run: npm install --frozen-lockfile

- name: Build package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "redlock",
"version": "v5.0.0-beta.2",
"name": "@kittl/redlock",
"version": "5.0.0-beta.3",
"description": "A node.js redlock implementation for distributed redis locks",
"license": "MIT",
"author": {
"name": "Mike Marcacci",
"email": "[email protected]"
},
"repository": "https://github.com/mike-marcacci/node-redlock.git",
"homepage": "https://github.com/mike-marcacci/node-redlock#readme",
"bugs": "https://github.com/mike-marcacci/node-redlock/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/kittl/node-redlock.git"
},
"homepage": "https://github.com/kittl/node-redlock#readme",
"bugs": "https://github.com/kittl/node-redlock/issues",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -71,5 +74,8 @@
"dependencies": {
"node-abort-controller": "^3.0.1"
},
"type": "module"
"type": "module",
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}