Skip to content

Commit 19b396c

Browse files
author
Loïc Hermann
committed
setup release action
1 parent 0035aff commit 19b396c

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node.js Package
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '15.x'
14+
registry-url: 'https://npm.pkg.github.com'
15+
- run: yarn install
16+
- run: yarn publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- uses: actions/setup-node@v2
20+
with:
21+
node-version: '15.x'
22+
registry-url: 'https://registry.npmjs.org'
23+
- run: yarn publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"self-balancing",
1313
"AVL tree"
1414
],
15-
"homepage": "https://github.com/louischatriot/node-binary-search-tree",
15+
"homepage": "https://github.com/rmanibus/node-binary-search-tree",
1616
"repository": {
1717
"type": "git",
18-
"url": "git@github.com:louischatriot/node-binary-search-tree.git"
18+
"url": "git@github.com:rmanibus/node-binary-search-tree.git"
1919
},
2020
"dependencies": {
2121
"underscore": "^1.13"

0 commit comments

Comments
 (0)