Skip to content

Commit

Permalink
Automated NPM release
Browse files Browse the repository at this point in the history
  • Loading branch information
j3lte committed Apr 22, 2023
1 parent 56e1870 commit 55c1e1c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build NPM package (On Release)

on:
release:
types:
- published

jobs:
release:
name: Build NPM package (On Demand)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Deno
uses: denoland/setup-deno@v1

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Run Deno dnt
run: deno task npm ${{ github.ref_name }}

- name: Check Version
run: cat ./npm/package.json | jq .version

- name: Publish to NPM
run: cd ./npm && yarn publish --verbose --access public --new-version ${{ github.ref_name }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Werk Aan De Muur - API

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/j3lte/wamclient?style=for-the-badge)](https://github.com/j3lte/wamclient/releases/latest "GitHub release (latest by date)")
[![NPM Version](https://img.shields.io/npm/v/wamclient?style=for-the-badge)](https://www.npmjs.com/package/wamclient "NPM Version")
[![GitHub Release Date](https://img.shields.io/github/release-date/j3lte/wamclient?style=for-the-badge)](https://github.com/j3lte/wamclient/releases/latest "GitHub Release Date")
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/j3lte/wamclient?style=for-the-badge)
[![GitHub](https://img.shields.io/github/license/j3lte/wamclient?style=for-the-badge)](https://github.com/j3lte/wamclient/blob/main/LICENSE "GitHub License")
[![GitHub last commit](https://img.shields.io/github/last-commit/j3lte/wamclient?style=for-the-badge)](https://github.com/j3lte/wamclient/commits/main "GitHub last commit")
[![GitHub issues](https://img.shields.io/github/issues/j3lte/wamclient?style=for-the-badge)](https://github.com/j3lte/wamclient/issues "Github Issues")

Werk aan de Muur - API client for Deno/Node

This client is intended for limited use at the backend. It is not intended for use in the browser.
Expand All @@ -25,10 +33,18 @@ Inspired by the [Wordpress Plugin](https://nl.wordpress.org/plugins/werk-aan-de-

## Installation

Deno

```typescript
import { WAMClient } from 'https://deno.land/x/wamclient/mod.ts';
```

Node

```typescript
import { WAMClient } from 'wamclient';
```

## Example

```typescript
Expand Down

0 comments on commit 55c1e1c

Please sign in to comment.