Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use all-the-package-repos as a source of package names #26

Merged
merged 3 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
schedule:
- cron: "0 */6 * * *"

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.ZEKE_PAT_WITH_REPO_AND_WORKFLOW_ACCESS }}
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Update and Publish
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"

npm update all-the-package-repos
npm run build
npm test
[[ `git status --porcelain` ]] || exit

echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

git add .
# bump the version, commit, and create a tag
npm version patch -f -m "update all-the-package-names to %s"

git push origin master --follow-tags
npm publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
skimdb.json
package-lock.json
10 changes: 0 additions & 10 deletions example.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
const names = require('./')

// Most-depended-on names are first. See what's popular!
names.slice(0,5)
// [
// 'mocha',
// 'chai',
// 'lodash',
// 'grunt',
// 'eslint'
// ]

names.includes('superagent')
// => true

Expand Down
Loading