-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from microlinkhq/next
chore: associate keys with a plan
- Loading branch information
Showing
11 changed files
with
286 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
contributors: | ||
if: "${{ github.event.head_commit.message != 'build: contributors' }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: Contributors | ||
run: | | ||
git config --global user.email ${{ secrets.GIT_EMAIL }} | ||
git config --global user.name ${{ secrets.GIT_USERNAME }} | ||
npm run contributors | ||
- name: Push changes | ||
run: | | ||
git push origin ${{ github.head_ref }} | ||
release: | ||
if: | | ||
!startsWith(github.event.head_commit.message, 'chore(release):') && | ||
!startsWith(github.event.head_commit.message, 'docs:') && | ||
!startsWith(github.event.head_commit.message, 'ci:') | ||
needs: [contributors] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
run_install: true | ||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
- name: Test | ||
run: pnpm test | ||
# - name: Report | ||
# run: npx c8 report --reporter=text-lcov > coverage/lcov.info | ||
# - name: Coverage | ||
# uses: coverallsapp/github-action@main | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# run: | | ||
# git config --global user.email ${{ secrets.GIT_EMAIL }} | ||
# git config --global user.name ${{ secrets.GIT_USERNAME }} | ||
# git pull origin master | ||
# pnpm run release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: pull_request | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
if: github.ref != 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
run_install: true | ||
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
- name: Test | ||
run: pnpm test | ||
# - name: Report | ||
# run: npx c8 report --reporter=text-lcov > coverage/lcov.info | ||
# - name: Coverage | ||
# uses: coverallsapp/github-action@main | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
"openkey": "bin/index.js" | ||
}, | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "microlink.io", | ||
"email": "[email protected]", | ||
"url": "https://microlink.io" | ||
}, | ||
"repository": { | ||
|
@@ -28,16 +28,20 @@ | |
"dependencies": { | ||
"mri": "~1.2.0" | ||
}, | ||
"files": [ | ||
"src" | ||
], | ||
"devDependencies": { | ||
"ioredis": "latest", | ||
"@commitlint/cli": "latest", | ||
"@commitlint/config-conventional": "latest", | ||
"@ksmithut/prettier-standard": "latest", | ||
"ava": "5", | ||
"c8": "latest", | ||
"ci-publish": "latest", | ||
"github-generate-release": "latest", | ||
"finepack": "latest", | ||
"git-authors-cli": "latest", | ||
"github-generate-release": "latest", | ||
"nano-staged": "latest", | ||
"npm-check-updates": "latest", | ||
"simple-git-hooks": "latest", | ||
|
@@ -53,7 +57,7 @@ | |
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true", | ||
"coverage": "c8 report --reporter=text-lcov > coverage/lcov.info", | ||
"lint": "standard-markdown README.md && standard", | ||
"postrelease": "npm run release:tags && npm run release:github && npm publish", | ||
"postrelease": "npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)", | ||
"prerelease": "npm run update:check", | ||
"pretest": "npm run lint", | ||
"release": "standard-version -a", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.