Skip to content

Commit

Permalink
Merge pull request #3 from hemilabs/use-hemilabs-actions
Browse files Browse the repository at this point in the history
Use hemilabs github actions
  • Loading branch information
gndelia authored Oct 23, 2024
2 parents b8ad1a2 + 5910739 commit 1605736
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 35 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/js-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,7 @@ concurrency:
cancel-in-progress: true

jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci
- run: npm run format:check
- run: npm run lint
- run: npm run knip
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
strategy:
matrix:
node-version: [16, 18, 20, 22]
js-checks:
uses: hemilabs/actions/.github/workflows/js-checks.yml@main
with:
node-versions: '["16", "18", "20", "22"]'
14 changes: 3 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ on:
- published

jobs:
publish-to-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm ci
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
npm-publish:
uses: hemilabs/actions/.github/workflows/npm-publish.yml@main
secrets: inherit
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"repository": "hemilabs/crypto-shortener",
"scripts": {
"coverage": "c8 npm test",
"deps:check": "knip",
"format:check": "prettier --check .",
"knip": "knip",
"lint": "eslint --cache .",
"prepare": "husky",
"test": "mocha"
Expand Down

0 comments on commit 1605736

Please sign in to comment.