Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
gemwuu committed Mar 15, 2023
1 parent 210bf2c commit 266a9cf
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
fail-fast: false
matrix:
node-version: [ 16.x, 18.x ]
platform:
- os: ubuntu-latest
shell: bash

runs-on: ${{ matrix.platform.os }}

defaults:
run:
shell: ${{ matrix.platform.shell }}

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm i
- name: Run CI
run: npm run ci
env:
NODE_OPTIONS: --max_old_space_size=6144
- name: Code Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release

on:
push:
branches: [ master ]

workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
'use strict';

module.exports = {};

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "@cnpmjs/binaries",
"version": "0.0.0",
"description": "npm binary prebuilt alternatives",
"main": "index.js",
"scripts": {
"ci": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"index.js"
],
"repository": {
"type": "git",
"url": "git+https://github.com/cnpm/binaries.git"
},
"author": "gemwuu <[email protected]>(https://github.com/gemwuu)",
"license": "MIT",
"bugs": {
"url": "https://github.com/cnpm/binaries/issues"
},
"homepage": "https://github.com/cnpm/binaries#readme"
}

0 comments on commit 266a9cf

Please sign in to comment.