Skip to content

Commit

Permalink
Prepare for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
j3lte committed Dec 6, 2023
1 parent 22c8f05 commit d7c15fb
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ jobs:
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: minor
tag_prefix: ""
35 changes: 35 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build NPM package (On Demand)
on:
workflow_dispatch:
inputs:
version:
description: "Release version (x.y.z):"
required: true

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.event.inputs.version }}

- 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.event.inputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build NPM package (On Release)

on:
release:
types:
- published

jobs:
release:
name: Build NPM package (On Release)
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

# Disabled for now
# - 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 }}
1 change: 1 addition & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jobs:
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# RDW Data

Test
This uses the [RDW Open Data](https://opendata.rdw.nl/) API to generate a [SODA API](https://github.com/j3lte/deno-soda) providers for Deno and NodeJS.

## Installation

Deno:

```
Import directly from https://deno.land/x/rdw_data/mod.ts
```

Node:

```bash
> npm install rdw-data -s
```


<!-- START FUNCTIONS -->
## API
Expand Down
1 change: 0 additions & 1 deletion scripts/fetch-databases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const updateReadme = async (data: DataResult[], sodaVersion: string): Promise<vo

const list = data.map((item) => {
const columns = item.columns.map((col) => {
console.log(col);
return `| \`${col.big_name}\` | ${col.name} | ${col.datatype} |`;
}).join("\n");

Expand Down

0 comments on commit d7c15fb

Please sign in to comment.