Skip to content

Commit

Permalink
Merge pull request #16 from slatejack/feature/github-package
Browse files Browse the repository at this point in the history
Feature/GitHub package
  • Loading branch information
slatejack authored Jan 29, 2024
2 parents 09c4a80 + eb61efc commit 4173cb9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/push-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package to GitHub Packages
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/push-npm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npmjs & github package
name: Publish Package to npmjs
on:
push:
branches: [ "master" ]
Expand Down

0 comments on commit 4173cb9

Please sign in to comment.