Skip to content

Commit

Permalink
Publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Aveek-Saha committed Oct 4, 2020
1 parent 96e3f7f commit d5fb46e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 10

publish-npm:
needs: build
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -30,14 +30,15 @@ jobs:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://npm.pkg.github.com/
scope: '@Aveek-Saha'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@
"type": "git",
"url": "https://github.com/Aveek-Saha/js-data-structs.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"author": "Aveek Saha <aveek.s98@gmail.com>",
"homepage": "https://data-structs.netlify.com/",
"license": "MIT"
Expand Down

0 comments on commit d5fb46e

Please sign in to comment.