Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
workflow add github package
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jan 2, 2021
1 parent 5a48e71 commit d289766
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'v*.*.*'

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,7 +21,7 @@ jobs:
- run: yarn test

publish-npm:
needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -32,3 +32,17 @@ jobs:
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "node-youtube-music",
"description": "Unofficial YouTube Music API for Node.js",
"version": "0.1.6",
"version": "0.1.7",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"repository": "https://github.com/baptisteArno/node-youtube-music",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3277,13 +3277,13 @@ node-notifier@^8.0.0:
uuid "^8.3.0"
which "^2.0.2"

node-youtube-music@^0.1.2, node-youtube-music@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/node-youtube-music/-/node-youtube-music-0.1.3.tgz#d60ae1f3f2c0e4798eee482151f2ccc964759c08"
integrity sha512-CHhjEliO/C0P2SDCT1P47/gyAexV7nJONfLyoNXDYjlsIb5dRUwRthKLQMIOcc7SAukJK/Id78IV8pXR/+wCrg==
node-youtube-music@^0.1.3:
version "0.1.5"
resolved "https://registry.yarnpkg.com/node-youtube-music/-/node-youtube-music-0.1.5.tgz#25f79dcb7fa9261a2c70e15281982a75ea295313"
integrity sha512-M9s3oVCLFnOWN5z4W1N2Eold3gkqkVljh05XAS6znKGkj0Ob0yjlycNAWq1CD+48BVIGxZ6Y9eX2gtBq1+1gmQ==
dependencies:
got "^11.8.1"
node-youtube-music "^0.1.2"
node-youtube-music "^0.1.3"

normalize-package-data@^2.3.2, normalize-package-data@^2.5.0:
version "2.5.0"
Expand Down

0 comments on commit d289766

Please sign in to comment.