Skip to content

Commit

Permalink
Use all-the-package-repos as a source of package names
Browse files Browse the repository at this point in the history
  • Loading branch information
zarianec committed Feb 4, 2022
1 parent bba7ca9 commit f945871
Show file tree
Hide file tree
Showing 8 changed files with 1,079 additions and 81 deletions.
31 changes: 31 additions & 0 deletions .github/workflow/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
workflow_dispatch: {}
schedule:
- cron: "0 */6 * * *"

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_PAT_FROM_ZEKE }}
- name:
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 .
npm version patch -f -m "Update all-the-package-names to %s"
git push origin master --follow-tags
npm publish
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

0 comments on commit f945871

Please sign in to comment.