Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish ESM version #473

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,29 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Node.js ${{ matrix.node-version }}
- name: Node.js latest
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: '*'
cache: 'npm'
check-latest: true
- name: Install dependencies
run: npm ci
- name: Linting
run: npm run format:ci
if: "${{ matrix.node-version == '*' }}"
- name: Build
run: npm run build
- name: Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
if: "${{ matrix.node-version != '*' }}"
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
check-latest: true
- name: Install dependencies ${{ matrix.node-version }}
run: npm ci
if: "${{ matrix.node-version != '*' }}"
Comment on lines +37 to +48
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing to always build on latest node, but still run tests on 14 if specified. This is because latest rollup doesn't work on 14.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smart!

- name: Tests
run: npm run test:ci
- name: Get test coverage flags
Expand Down
Loading
Loading