Skip to content

Instantly share code, notes, and snippets.

@SoYoung210
Created December 10, 2019 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SoYoung210/5794d577f7375b4c64f61418a5d92165 to your computer and use it in GitHub Desktop.
Save SoYoung210/5794d577f7375b4c64f61418a5d92165 to your computer and use it in GitHub Desktop.
GitHub Package Deploy
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