Skip to content

Commit 4fbd774

Browse files
committed
Configured release to NPM
- Testing release to NPM using GitHub action for v0.0.1-beta
1 parent bbe057d commit 4fbd774

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Create Release
2+
on:
3+
release:
4+
types: [prereleased]
5+
jobs:
6+
build:
7+
name: Create Release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
# Setup .npmrc file to publish to npm
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.0'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install
17+
# Publish to npm
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "splunk-logging",
3-
"version": "0.10.1",
3+
"version": "0.0.1-beta",
44
"description": "Splunk HTTP Event Collector logging interface",
55
"homepage": "http://dev.splunk.com",
66
"main": "index.js",

0 commit comments

Comments
 (0)