Skip to content

Commit

Permalink
ci: update actions to use node 18, include linting checks in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
drichar committed Oct 5, 2023
1 parent 680f7d4 commit 57d0bc3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install dependencies (with cache)
uses: bahmutov/npm-install@v1

- name: Run ESLint
run: yarn lint

- name: Run Prettier check
run: yarn prettier

- name: Run TypeScript type check
run: yarn check-types

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
name: Release & Publish to NPM

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Initialize Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Initialize NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run release
run: yarn release --ci
env:
Expand Down

0 comments on commit 57d0bc3

Please sign in to comment.