add readme and github actions

This commit is contained in:
mrjvs
2023-06-21 14:58:34 +02:00
parent 2f2db1aab8
commit b4656c679a
4 changed files with 68 additions and 2 deletions

29
.github/publish.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: npm
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install packages
run: npm ci
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}