Skip to content

Commit

Permalink
github action: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
aadityabhatia committed Jul 27, 2023
1 parent 6ed0d6c commit d5ce988
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to npmjs

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- uses: JS-DevTools/npm-publish@v2.2.1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "replay-ranger",
"name": "@corsaircoalition/replay-ranger",
"version": "2.0.0",
"description": "record and replay generals.io game updates to Redis",
"private": true,
"main": "out/index.js",
"type": "module",
"dependencies": {
Expand Down

0 comments on commit d5ce988

Please sign in to comment.