Skip to content

Commit

Permalink
github workflow to publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
mnttnm committed Oct 26, 2023
1 parent ae6c50a commit 4ec8636
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: publish npm package

on:
workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
- if: ${{ steps.publish.outputs.type }}
run: echo "Version changed!"

0 comments on commit 4ec8636

Please sign in to comment.