Skip to content

Commit

Permalink
Add workflow to publish NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Jun 24, 2024
1 parent 621bcb2 commit cee72a9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
jobs:
lint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -48,3 +49,19 @@ jobs:
with:
name: build
path: dist/netzgrafik-frontend/

publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build
path: .
- uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
- run: npm publish --provenance --access public --tag "0.0.0+$GITHUB_SHA"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit cee72a9

Please sign in to comment.