ci: add CI using GitHub Actions

Signed-off-by: Pascal Vorwerk <info@fossores.de>
This commit is contained in:
2024-01-28 22:16:56 +01:00
parent d4d1742487
commit 68919fb0db

21
.github/workflows/package.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Node.js CI
on: [push]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com/"
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}