Skip to content

Commit

Permalink
Setup publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
sxwei123 committed Dec 11, 2020
1 parent cae9792 commit 9524581
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Publish"

on:
push:
branches:
- master

jobs:
release:
name: Build and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: "10.x"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azure-log-analytics-data-collector-client",
"version": "1.0.3",
"version": "1.1.0",
"description": "Node.js wrapper for Azure Log Analytics data collector API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 9524581

Please sign in to comment.