Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarvijaykulkarni committed Feb 8, 2022
1 parent adb3d85 commit 15a3db2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js Package
name: Publish Package to npmjs
on:
release:
types: [created]
Expand All @@ -11,23 +11,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org/'
- run: npm install
- run: npm run build
- run: npm test

publish-npm:
# if: github.ref == 'refs/heads/main'
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org/'
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mantium/string-utils",
"version": "1.3.6",
"version": "1.3.7",
"description": "string utility functions for javascript",
"main": "src/index.js",
"publishConfig": {
Expand Down

0 comments on commit 15a3db2

Please sign in to comment.