Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zkz098 authored May 20, 2023
1 parent 0efcf75 commit e00c939
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Node.js Package
on:
release:
types: [created]
workflow_call:

env:
NPM_TOKEN: ${{ secrets.npm_token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
publish:
Expand All @@ -14,10 +19,10 @@ jobs:
registry:
- name: NPM Registry
url: https://registry.npmjs.org/
token: ${{ secrets.npm_token }}
token: ${{ env.NPM_TOKEN }}
- name: GitHub Packages Registry
url: https://npm.pkg.github.com/
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ env.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit e00c939

Please sign in to comment.