move github actions

This commit is contained in:
mrjvs
2023-06-21 15:32:42 +02:00
parent a57f9d1f55
commit 9f66778d28
2 changed files with 0 additions and 0 deletions

29
.github/workflows/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 }}

31
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Testing
on:
pull_request:
push:
branches:
- master
- dev
jobs:
testing:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install packages
run: npm install
- name: Run tests
run: npm run test
- name: Run linting
run: npm run lint