Skip to content

Commit

Permalink
Use node@18 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Feb 9, 2024
1 parent ba4ded4 commit 896cd79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Begin CI...
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 12
- name: Setup Node.js 18.x
uses: actions/[email protected]
with:
node-version: 12.x
node-version: 18.x

- name: Use cached node_modules
uses: actions/[email protected]
Expand All @@ -26,11 +26,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Test
run: npm test -- --ci --coverage --maxWorkers=2
run: npm test
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,30 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 12.x
- name: Setup Node.js 18.x
uses: actions/[email protected]
with:
node-version: 12.x
node-version: 18.x
cache: npm

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
# https://github.com/changesets/action
- name: Create release PR or publish to npm
id: changesets
# https://github.com/changesets/action
uses: changesets/action@master
uses: changesets/action@v1
with:
title: 'Chore: Publish release'
# This expects you to have a script called release which does a build
# for your packages and calls changeset publish
publish: npm run release
title: 'Publish release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 896cd79

Please sign in to comment.