Skip to content
Open
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
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
**Before** Bug Reporting, Please update secretlint and try it.
Also see https://github.com/secretlint/secretlint/blob/master/docs/CONTRIBUTING.md#bug-reporting
-->

**What version of secretlint are you using?**
<!--
$ npx secretlint -v
-->
**What file type (Markdown, plain text, etc.) are you using?**

**What did you do? Please include the actual source code causing the issue.**

**What did you expect to happen?**

**What actually happened? Please include the actual, raw output from secretlint.**
<!--
You can get debug log by running secretlint with `--debug` option.
$ npx secretlint --debug target.md
# Please paste the debug log to the issue or use http://gist.github.com/
--->
15 changes: 15 additions & 0 deletions .github/pr-to-changesets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"majorLabels": [
"Semver: major",
"Type: Breaking Change"
],
"minorLabels": [
"Semver: minor",
"Type: Feature"
],
"patchLabels": [
"Semver: patch",
"Type: Bug"
]
}

10 changes: 10 additions & 0 deletions .github/pr_labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '1'
invalidStatus: "pending"
labelRule:
values:
- "Semver: major"
- "Type: Breaking Change"
- "Semver: minor"
- "Type: Feature"
- "Semver: patch"
- "Type: Bug"
71 changes: 71 additions & 0 deletions .github/workflows/changesetUpdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# When a pull request is merged for a branch with prefix “release/****” and a
# version label to the main branch, trigger a github workflow to update the a
# changelog with the current versions changes. When merged, the workflow should
# create a pull request to the main branch collecting all changes for a release.

name: 'Update Changelog on Merged PR Releases and Create Release PR'
on:
pull_request:
branches:
- 'main'
types: [closed]

jobs:
check_labels:
name: Check labels
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && contains(github.head_ref, 'release/') && contains(github.head_ref, 'changeset-release') == false
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
with:
any_of: 'Semver: major,Type: Breaking Change,Semver: minor,Type: Feature,Semver: patch,Type: Bug'
repo_token: ${{ secrets.GITHUB_TOKEN }}

update_changeset:
needs: check_labels
name: Update Changesets
runs-on: ubuntu-latest
steps:
- name: Setup Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node_version: 16

- name: Install Packages
run: yarn install
- name: Build Packages
run: yarn build:packages

- name: Set Github Configuration
run: |
git add .
git config --global user.email "${{github.actor}}@users.noreply.github.com"
git config --global user.name "${{github.actor}}"
- name: PR to Changesets
run:
npx pr-to-changesets --config .github/pr-to-changesets.json --owner ${OWNER} --repo ${REPO} --pullRequestNumber ${PR_NUMBER} --output ".changeset/${OWNER}-${REPO}-${PR_NUMBER}.md"
env:
OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
REPO: ${{ github.event.pull_request.head.repo.name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Git push
run: |
git add .changeset
git config --global user.email "${{github.actor}}@users.noreply.github.com"
git config --global user.name "${{github.actor}}"
git commit -m "chore: added changeset for PR #${PR_NUMBER}"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}

- name: Create/Update Release Pull Request
uses: changesets/action@v1
with:
commit: "chore: release changeset"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# when the release pull request has been merged, it should contain all version
# bumped packages. Run a script to create an release to github updated

name: 'Create GitHub Releases'
on:
pull_request:
branches:
- 'test'
types: [closed]

jobs:
publish_npm:
name: Publish to NPM
if: github.event.pull_request.merged == true && contains(github.head_ref, 'changeset-release')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Packages
run: yarn install
- name: Build Packages
run: yarn build:packages
- run: npm run release-ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@rdfrontier:registry="https://registry.npmjs.org"
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"private": true,
"version": "1.0.0",
"description": "Realdecoy Labs Shared Libraries",
"homepage": "https://github.com/realdecoy/frontier/blob/main/package.json",
"main": "index.js",
"author": "Realdecoy",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"typecheck": "lerna run typecheck",
Expand All @@ -19,7 +24,9 @@
"build:finish": "notify -t \"Frontier\" -m \"All packages rebuilt\"",
"build:packages": "lerna run rebuild --stream",
"precommit": "test && lint-staged",
"prepare": "husky install"
"prepare": "husky install",
"add-changesets": "changeset add",
"release-ci": "lerna publish from-package --y --no-verify-access"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.17.0",
Expand All @@ -43,12 +50,14 @@
},
"dependencies": {
"@babel/core": "^7.17.9",
"@changesets/cli": "^2.6.1",
"husky": "^7.0.4",
"node-notifier": "^10.0.1",
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"open": "^8.4.0",
"patch-package": "^6.4.7",
"pr-to-changesets": "^1.0.1",
"rimraf": "^3.0.2",
"tslib": "^2.3.1",
"typescript": "^4.6.3"
Expand All @@ -67,4 +76,4 @@
"prettier --write --no-semi --single-quote "
]
}
}
}
11 changes: 9 additions & 2 deletions packages/frontier-core/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-core/cli"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@oclif/core": "^1",
"@oclif/plugin-help": "^5",
Expand Down Expand Up @@ -74,10 +82,9 @@
"engines": {
"node": ">=12.0.0"
},
"repository": "realdecoy/frontier",
"bugs": "https://github.com/realdecoy/frontier/issues",
"keywords": [
"oclif"
],
"types": "dist/index.d.ts"
}
}
12 changes: 10 additions & 2 deletions packages/frontier-core/lib-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
"description": "Builds TS packages into tree-shaking compatible npm modules",
"license": "UNLICENSED",
"author": "Gareth Thomas <oforevergareth@gmail.com>",
"homepage": "",
"homepage": "https://github.com/realdecoy/frontier",
"main": "index.js",
"bin": {
"build-package": "./index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-core/lib-builder"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"fix": "run-s lint:es:fix lint:md:fix",
"lint": "run-s lint:es lint:md",
Expand All @@ -35,4 +43,4 @@
"webpack": "^4.0.0",
"webpack-node-externals": "^3.0.0"
}
}
}
18 changes: 15 additions & 3 deletions packages/frontier-libraries/stdlib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@
"description": "stdlib functionality",
"license": "UNLICENSED",
"author": "Realdecoy",
"homepage": "",
"homepage": "https://github.com/realdecoy/frontier",
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-libraries/stdlib"
},
"main": "dist/index.js",
"module": "module/index.js",
"files": [
"dist/",
"module/",
"types/"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "build-package",
"build:watch": "build-package --watch",
Expand Down Expand Up @@ -46,5 +54,9 @@
"browserslist": [
"chrome 38",
"ios >= 9"
]
}
],
"engines": {
"node": "^16.13.1",
"yarn": "^1.22.18"
}
}
12 changes: 10 additions & 2 deletions packages/frontier-libraries/typekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@
"description": "Useful and relevant types",
"license": "UNLICENSED",
"author": "Realdecoy",
"homepage": "",
"homepage": "https://github.com/realdecoy/frontier",
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-libraries/typekit"
},
"main": "dist/index.js",
"module": "module/index.js",
"files": [
"dist/",
"module/",
"types/"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "build-package",
"build:watch": "build-package --watch",
Expand Down Expand Up @@ -41,4 +49,4 @@
"node": "^16.13.1",
"yarn": "^1.22.18"
}
}
}
10 changes: 9 additions & 1 deletion packages/frontier-plugins/plugin-qa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
]
},
"url": "git+https://github.com/realdecoy/frontier.git",
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-plugins/plugin-qa"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "build-package",
"build:watch": "build-package --watch",
Expand All @@ -86,4 +94,4 @@
"typecheck": "tsc --noEmit"
},
"types": "lib/index.d.ts"
}
}
11 changes: 10 additions & 1 deletion packages/frontier-plugins/plugin-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
"module/",
"types/"
],
"homepage": "https://github.com/realdecoy/frontier",
"repository": {
"type": "git",
"url": "https://github.com/realdecoy/frontier.git",
"directory": "packages/frontier-plugins/plugin-shared"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "build-package",
"build:watch": "build-package --watch",
Expand Down Expand Up @@ -43,4 +52,4 @@
"chrome 38",
"ios >= 9"
]
}
}
Loading