Skip to content

Commit

Permalink
chore: use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 5, 2023
1 parent a5baf1f commit e3137c1
Show file tree
Hide file tree
Showing 9 changed files with 3,669 additions and 9,257 deletions.
2 changes: 1 addition & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

npx --no-install nice-move lint commit
pnpm exec nice-move lint commit
4 changes: 2 additions & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

npm run lint:staged
npm test
pnpm run lint:staged
pnpm test
40 changes: 40 additions & 0 deletions .github/workflows/bring-it.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: bring-it

on:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- current
- lts/*
- lts/-1
exclude:
- os: ubuntu-latest
node: lts/*

runs-on: ${{ matrix.os }}
steps:
- name: Run
uses: airkro/bring-it@actions
with:
node-version: ${{ matrix.node }}

publish:
needs: [test]
runs-on: ubuntu-latest
env:
node-version: lts/*
steps:
- name: Run
uses: airkro/bring-it@actions
with:
npm-token: ${{ secrets.NPM_TOKEN }}
38 changes: 0 additions & 38 deletions .github/workflows/test.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enable-pre-post-scripts = true
4 changes: 2 additions & 2 deletions lib/utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function toMeta(item) {

function replaceRange(string, [start, end], value) {
return (
string.slice(0, start).replace(/\S/g, ' ') +
string.slice(0, start).replaceAll(/\S/g, ' ') +
value +
string.slice(end, value.length).replace(/\S/g, ' ')
string.slice(end, value.length).replaceAll(/\S/g, ' ')
);
}

Expand Down
Loading

0 comments on commit e3137c1

Please sign in to comment.