Skip to content

Commit

Permalink
chore: updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kasvith committed Mar 8, 2024
1 parent e77cc2c commit 50f6f0e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,23 @@ jobs:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, lint and test
cache: "npm"
- name: Install dependencies
run: |
npm ci
npm run lint
npm run build
env:
CI: true
- name: Lint
run: |
npm run lint
- name: Build
run: |
npm run build
- name: Build docs
run: |
npm run build:docs
21 changes: 12 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
- run: npm ci
- run: npm run lint
- run: npm run build
Expand All @@ -20,11 +21,12 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm publish
Expand All @@ -51,12 +53,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
- name: Install Deps
run: npm ci
- name: Build Docs
Expand Down

0 comments on commit 50f6f0e

Please sign in to comment.