Publish on merge to master

This commit is contained in:
Arthur Vivian
2021-06-25 13:32:32 +01:00
parent 5562663acd
commit d676c3d9cf
6 changed files with 66 additions and 3 deletions

27
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Publish to NPM
on:
pull_request:
types: [closed]
branches:
- main
jobs:
merge_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Modules
run: npm ci
- name: Run type check
run: npm run types:check
- name: Run Linter
run: npm run lint
- name: Run Tests
run: npm test
- name: Build
run: npm build
- name: Publish
run: npm run publish

View File

@@ -1,6 +1,5 @@
name: CI
on:
push:
on: push
jobs:
build:
runs-on: ubuntu-latest