Skip to content

Commit

Permalink
Add deployment to Github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
laimermic committed Nov 29, 2023
1 parent 980a21a commit 087d77f
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: |
npm ci
npm run build
publish-npm:
needs: build
Expand All @@ -33,3 +35,18 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-github:
needs: build
runs-on: ubuntu-latest
environment: GitHub
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- name: Publish to GitHub Packages
run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 087d77f

Please sign in to comment.