Skip to content

Commit cef3711

Browse files
committed
chore(ci): set up basic ci flows and edit package metadata
1 parent 595d45d commit cef3711

File tree

5 files changed

+652
-8
lines changed

5 files changed

+652
-8
lines changed

.github/workflows/main.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on: [push, pull_request]
2+
3+
name: CI
4+
5+
jobs:
6+
node-jdbc:
7+
name: node-jdbc
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
node_version:
13+
- 18
14+
- 20
15+
steps:
16+
- name: 🧶 Get yarn cache directory path 🧶
17+
id: yarn-cache-dir-path
18+
run: echo "dir=$(yarn config get cacheFolder)" >> "$GITHUB_OUTPUT"
19+
- name: 💵 Cache 💵
20+
uses: actions/cache@v4
21+
id: yarn-cache
22+
with:
23+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
24+
key: ${{ runner.os }}-${{ matrix.node_version }}-yarn-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-${{ matrix.node_version }}-yarn-
27+
${{ runner.os }}-yarn-
28+
- name: ☑️ Checkout ☑️
29+
uses: actions/checkout@v4
30+
- name: 🔋 Node 🔋
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: ${{ matrix.node_version }}
34+
- name: 💾 Install 💾
35+
run: yarn install
36+
- name: 🧪 Test 🧪
37+
run: yarn test

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
- "v*.*.*-*"
8+
9+
jobs:
10+
npm:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Use Node.js 20.x
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20.x
21+
- name: Yarn install
22+
uses: borales/actions-yarn@v4
23+
with:
24+
cmd: install --frozen-lockfile
25+
- name: Set NPM token
26+
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
27+
env:
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- name: NPM publish
30+
run: npm publish --access public

.travis.yml

-4
This file was deleted.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "node-java-maven",
3-
"version": "0.1.2",
2+
"name": "@cubejs-backend/node-java-maven",
3+
"version": "0.1.3",
44
"description": "Utility for Node's java module to load mvn dependencies.",
55
"main": "index.js",
66
"bin": {
@@ -15,11 +15,11 @@
1515
"mvn"
1616
],
1717
"bugs": {
18-
"url": "https://github.com/joeferner/node-java-maven/issues"
18+
"url": "https://github.com/cube-js/node-java-maven/issues"
1919
},
2020
"repository": {
2121
"type": "git",
22-
"url": "https://github.com/joeferner/node-java-maven.git"
22+
"url": "https://github.com/cube-js/node-java-maven.git"
2323
},
2424
"author": "Joe Ferner <[email protected]>",
2525
"license": "MIT",

0 commit comments

Comments
 (0)