Skip to content

Commit

Permalink
Update lint-and-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadJaziraly committed Dec 24, 2024
1 parent 057b31f commit 0aea730
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
name: Verify and Publish to npm registry
on:
release:
types: [ published ]
name: Lint and Test
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
strategy:
matrix:
node-version: ['20.x', '22.x', '23.x']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Verify
run: npm test
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- run: npm test

0 comments on commit 0aea730

Please sign in to comment.