Skip to content

Instantly share code, notes, and snippets.

@TiagoDanin
Created December 30, 2019 21:04
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 TiagoDanin/7a85d1e1b7baa50b2125fb6535409a4e to your computer and use it in GitHub Desktop.
Save TiagoDanin/7a85d1e1b7baa50b2125fb6535409a4e to your computer and use it in GitHub Desktop.
Github actions example
name: Node.js Package
on: push
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
publish-gpr:
needs: build
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tiagodanin'
- run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment