Skip to content

Commit

Permalink
Merge pull request #48 from IntersectMBO/chore/set-up-automatic-deplo…
Browse files Browse the repository at this point in the history
…yment-to-npm

chore: add github workflow to publish package to npm
  • Loading branch information
nebojsact authored Dec 25, 2024
2 parents d1edf6f + b2a5023 commit 2b39a7c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and publish new version of @intersect.mbo/pdf-ui package
run-name: Publish by @${{ github.actor }}

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pdf-ui

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
scope: "@intersect.mbo"

- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 2b39a7c

Please sign in to comment.