Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Mar 12, 2024
0 parents commit 8b7970c
Show file tree
Hide file tree
Showing 23 changed files with 6,907 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
push:
tags:
- '*-beta.*'

jobs:
publish_beta:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Compile
run: npm run build

- name: Publish
run: |
npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
push:
tags-ignore:
- '*-beta.*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test

- name: Compile
run: npm run build

- name: Publish
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Deps
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/node_modules
/dist
.pnpm-debug.log
/coverage
.DS_Store
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.16.0
17 changes: 17 additions & 0 deletions .sizesnap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"dist/get.js": {
"size": "398B",
"brotli": "214B",
"gzip": "270B"
},
"dist/index.js": {
"size": "50B",
"brotli": "54B",
"gzip": "60B"
},
"dist/set.js": {
"size": "835B",
"brotli": "339B",
"gzip": "407B"
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# pick

> Straightforward object picker and walkers
Loading

0 comments on commit 8b7970c

Please sign in to comment.