Skip to content

Commit

Permalink
update readme and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Nov 14, 2024
1 parent b141882 commit 2f4e9be
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 36 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: CI

on:
pull_request:
push:
branches:
- main
- master
tags:
- 'v*.*.*'
pull_request:
branches:
- main
- master

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm install -g pnpm
Expand All @@ -24,3 +29,22 @@ jobs:
pnpm install
pnpm link ..
pnpm build
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
Auto-generated release
prerelease: ${{ contains(github.event.ref, '-beta') }}
fail_on_unmatched_files: true
files: ./dist/*
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Highscores

[![npm package](https://img.shields.io/npm/v/@webxdc/highscores.svg)](https://npmjs.com/package/@webxdc/highscores)
[![CI](https://github.com/webxdc/highscores/actions/workflows/ci.yml/badge.svg)](https://github.com/webxdc/highscores/actions/workflows/ci.yml)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

Library to facilitate the process of creating score-based webxdc games.
It can handle multiple scoreboards at the same time.

Expand Down

0 comments on commit 2f4e9be

Please sign in to comment.