Create npm-build.yml

This commit is contained in:
Gordon Goldbach 2024-09-16 19:57:00 +02:00 committed by GitHub
parent ee1fb098af
commit c23e11664d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

19
.github/workflows/npm-build.yml vendored Normal file
View File

@ -0,0 +1,19 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Build Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm build