Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
soags committed Jul 26, 2024
1 parent afa4eb4 commit 7d42d25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ on:
jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20

node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
16 changes: 7 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,25 @@ on:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

cache: 'npm'
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish
run: npm publish --provenane --access public
env:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ on:
jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20

node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

0 comments on commit 7d42d25

Please sign in to comment.