Skip to content

Commit 4f0d574

Browse files
chore(ci): configure npm, dependabot and gha (#1)
* chore(docs): add install instructions * chore(deps): install relevant packages * chore(test): add basic app test suite * chore: git ignore node modules * chore: install sdk build flavor * chore(ci): configure cicd * chore(test): set timeout to infinity * chore(ci): configure release please * chore(deps): roll back nw to v0.87.0-4 * chore(deps): update lock file * chore(deps): update lock file * chore(test): fix file path to nw project * chore(test): listen to deprecation warning
1 parent d229256 commit 4f0d574

14 files changed

+4161
-1
lines changed

.github/dependabot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "."
5+
schedule:
6+
interval: "daily"
7+
versioning-strategy: increase
8+
groups:
9+
npm:
10+
patterns:
11+
- "*"
12+
- package-ecosystem: "github-actions"
13+
directory: ".github/workflows"
14+
schedule:
15+
interval: "daily"
16+
groups:
17+
gha:
18+
patterns:
19+
- "*"

.github/workflows/e2e.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: e2e
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
e2e:
14+
strategy:
15+
matrix:
16+
os:
17+
- macos-14
18+
- ubuntu-22.04
19+
- windows-2022
20+
fail-fast: false
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/[email protected]
25+
- name: Use Node version defined in manifest
26+
uses: volta-cli/[email protected]
27+
- name: Node.js version
28+
run: node -v
29+
- name: npm version
30+
run: npm -v
31+
- name: Install dependencies
32+
run: npm ci
33+
- name: Check for linting errors
34+
run: npm run lint
35+
- name: Run tests
36+
run: npm run test

.github/workflows/npm.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: npm
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/[email protected]
13+
- uses: actions/[email protected]
14+
with:
15+
node-version: 22
16+
17+
- run: npm ci
18+
- uses: JS-DevTools/[email protected]
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/rel.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: rel
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Release Please
17+
uses: googleapis/[email protected]
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nwjs_build_type=sdk

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.0.0"
3+
}

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# nw-cli
22

33
Command line interface for building NW.js apps
4+
5+
## Getting Started
6+
7+
1. Install [Volta](https://volta.sh/)
8+
1. Install package: `npm i -D @nwutils/cli`

0 commit comments

Comments
 (0)