Skip to content

Commit

Permalink
Configured release to NPM
Browse files Browse the repository at this point in the history
- Testing release to NPM using GitHub action for v0.0.1-beta
  • Loading branch information
akaila-splunk committed Jun 29, 2021
1 parent bbe057d commit 4fbd774
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Create Release
on:
release:
types: [prereleased]
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '14.0'
registry-url: 'https://registry.npmjs.org'
- run: npm install
# Publish to npm
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "splunk-logging",
"version": "0.10.1",
"version": "0.0.1-beta",
"description": "Splunk HTTP Event Collector logging interface",
"homepage": "http://dev.splunk.com",
"main": "index.js",
Expand Down

0 comments on commit 4fbd774

Please sign in to comment.