Skip to content

Commit

Permalink
Merge pull request #3 from onebeyond/chore/release-2.0
Browse files Browse the repository at this point in the history
chore: added CI Pipeline to manage Github Packages publication
  • Loading branch information
UlisesGascon authored Jan 31, 2023
2 parents 2521118 + 81c0a93 commit 762f560
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/github_registry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@onebeyond'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 762f560

Please sign in to comment.