Skip to content

Commit

Permalink
chore: update github action to publish package (#86)
Browse files Browse the repository at this point in the history
updated github action so that whenever we create a new release then only it will be triggered and publish the package to npm
  • Loading branch information
patelvimal committed Dec 10, 2021
1 parent 7765a9e commit 5b42fae
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/npm-publish.yml
@@ -1,27 +1,14 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package
name: Publish Package

on:
push:
branches:
- 'release/**'
release:
types: [created]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- run: npm i

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 5b42fae

Please sign in to comment.