Skip to content

Commit

Permalink
chore: automatic build & publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cgawron committed Aug 23, 2020
1 parent 3037970 commit 0c1e573
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 1 deletion.
65 changes: 65 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: release

# Run the workflow when a Pull Request is opened or when changes are pushed to master
on:
pull_request:
push:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Run the steps below with the following versions of Node.js
node-version: [12.x]

steps:
# Fetch the latest commit
- name: Checkout
uses: actions/checkout@v2

# Setup Node.js using the appropriate version
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

# Install package dependencies
- name: Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Run tests
- name: Test
run: npm test

release:
# Only release on push to master
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish
run: npm config set '//registry.npmjs.org/:_authToken=' "${NODE_AUTH_TOKEN}" && npm publish --access publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Empty file added CHANGELOG.md
Empty file.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Tagflip

[Tagflip](https://jupiter.fh-swf.de/tagflip) is an online tagging tool similar to [BRAT](https://brat.nlplab.org/) or [WebAnno](https://webanno.github.io/webanno/).

## Why another online tagging tool?
While BRAT is rather lightweight, it runs only on UNIX-like environments and is a little outdated (Python 2.5 and CGI interface).
WebAnno is actively maintained, but it uses a UI based on Whicket and the code is quite complex.

Tagflip consists of a Node.js backend (which can be deployed as a docker container, if you like) and a lightweight React frontend.

## tagflip-common
This npm package contains the code shared between backend and frontend.
17 changes: 16 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
{
"name": "@fhswf/tagflip-common",
"version": "1.0.1",
"version": "1.0.2",
"description": "Shared files for TagFlip-Projects.",
"private": false,
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 0"
},
"author": "Timo Neuhaus",
"contributors": [
{
"name": "Jakub Kuklok"
},
{
"name": "Timo Neuhaus"
},
{
"name": "Max Kuhmichel"
},
{
"name": "Christian Gawron",
"email": "[email protected]"
}
],
"license": "MIT",
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
Expand Down

0 comments on commit 0c1e573

Please sign in to comment.