Skip to content

Commit

Permalink
Merge pull request #9 from Bala-raj/workflow
Browse files Browse the repository at this point in the history
checking publish workflow changes
  • Loading branch information
Bala-raj authored Aug 7, 2021
2 parents 2391fb6 + f2239d9 commit 36f7ea9
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,6 @@ jobs:
name: Get package History
uses: flood-io/is-published-on-npm@v1
id: isPublished

# Run below steps if the same version not published already
# Setup package registry to publish package
- if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true && steps.isPublished.outputs.published == 'false' )
name: Setup Registry
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'

# Publish package into github registry
- if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true && steps.isPublished.outputs.published == 'false' )
name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Setup package registry to publish in NPM package
- if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true && steps.isPublished.outputs.published == 'false' )
Expand Down

0 comments on commit 36f7ea9

Please sign in to comment.