Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Checks the format, linting and tsc on all pull requests
name: Check
on:
pull_request:
branches:
- master

env:
NODE_VERSION: lts

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Yarn Install
run: yarn --immutable
- name: Lint Check
run: yarn lint:check
- name: TSC Check
run: yarn tsc:check
- name: Prettier Check
run: yarn prettier:check
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Publishes the package to NPM and GitHub
name: Publish
on:
release:
types: [published]

env:
NODE_VERSION: lts

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Yarn Setup
run: |
yarn config set npmScopes.journee-live.npmPublishRegistry "https://npm.pkg.github.com"
- name: Yarn Install
run: yarn --immutable
- name: Publish
run: yarn npm publish
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Creates a release on every version change to the main branch
name: Release
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create Release
uses: halvardssm/[email protected]
Loading