Skip to content

Commit

Permalink
Merge pull request #65 from MetaCell/develop
Browse files Browse the repository at this point in the history
v0.0.2
  • Loading branch information
afonsobspinto authored Dec 7, 2023
2 parents e49568d + 1ffca5d commit 0c9fb11
Show file tree
Hide file tree
Showing 80 changed files with 32,745 additions and 350 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on: [pull_request, workflow_call]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps
run: npm i

- name: Lint
run: npm run lint

- name: Test
run: npm run test --ci --coverage --maxWorkers=2

- name: Build
run: npm run build
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/main.yml
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Check version changes
uses: EndBug/version-check@v1
id: check

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
run: npm install --only=prod

- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading

0 comments on commit 0c9fb11

Please sign in to comment.