Skip to content

Create @kablamo/rollup-plugin-resolve-externals to fix resolving CommonJS from .mjs #244

Create @kablamo/rollup-plugin-resolve-externals to fix resolving CommonJS from .mjs

Create @kablamo/rollup-plugin-resolve-externals to fix resolving CommonJS from .mjs #244

Workflow file for this run

name: Node CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- lts/hydrogen
- lts/iron
- current
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Check types
run: yarn tsc
- name: Run tests
run: yarn test:coverage
- name: Coveralls
if: ${{ matrix.node-version == 'current'}}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true
release:
name: Release
needs: build
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js Hydrogen
uses: actions/setup-node@v3
with:
node-version: lts/hydrogen
- name: Install dependencies
run: yarn
- name: Publish to npm
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}