Created
December 10, 2019 08:09
-
-
Save SoYoung210/5794d577f7375b4c64f61418a5d92165 to your computer and use it in GitHub Desktop.
GitHub Package Deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Add GiHub Package Token | |
run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.PACKAGE_AUTH_TOKEN }}" > ~/.npmrc | |
- name: Deploy new Package | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npm publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment