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

build(deps-dev): bump remarkable from 2.0.0 to 2.0.1 #25

Closed
wants to merge 14 commits into from
Closed
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/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
labels:
- "node_modules"
groups:
eslint:
patterns:
- "eslint*"
esbuild:
patterns:
- "esbuild*"
stylelint:
patterns:
- "stylelint*"
patternfly:
patterns:
- "@patternfly*"
66 changes: 66 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Update node_modules
on:
pull_request_target:
types: [opened, reopened, synchronize, labeled]

jobs:
dependabot:
environment: npm-update
permissions:
contents: read
pull-requests: write
timeout-minutes: 5
# 22.04's podman has issues with piping and causes tar errors
runs-on: ubuntu-20.04
if: ${{ contains(github.event.pull_request.labels.*.name, 'node_modules') }}

steps:
- name: Clone repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Clear .github-changes label
uses: actions/github-script@v6
with:
script: |
try {
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'node_modules'
});
} catch (e) {
if (e.name == 'HttpError' && e.status == 404) {
/* expected: 404 if label is unset */
} else {
throw e;
}
}

- name: Update node_modules for package.json changes
run: |
make tools/node-modules
git config --global user.name "GitHub Workflow"
git config --global user.email "[email protected]"
mkdir -p ~/.config/cockpit-dev
echo ${{ github.token }} >> ~/.config/cockpit-dev/github-token
eval $(ssh-agent)
ssh-add - <<< '${{ secrets.NODE_CACHE_DEPLOY_KEY }}'
GITHUB_BASE=jelly ./tools/node-modules install
GITHUB_BASE=jelly ./tools/node-modules push
git add node_modules
ssh-add -D
ssh-agent -k

- name: Force push node_modules update
run: |
git commit --amend --no-edit node_modules
eval $(ssh-agent)
ssh-add - <<< '${{ secrets.SELF_DEPLOY_KEY }}'
git push --force '[email protected]:${{ github.repository }}' '${{ github.head_ref }}'
ssh-add -D
ssh-agent -k
4 changes: 2 additions & 2 deletions .github/workflows/reposchutz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
- name: Check for node_modules availability and package.json consistency
run: |
# Make tools/node-modules available
make tools/node-modules
GITHUB_BASE=jelly make tools/node-modules
# for each commit in the PR which modifies package.json or node_modules...
for commit in $(git log --reverse --full-history --format=%H \
"${HEAD_SHA}" --not "${BASE_SHA}" -- package.json node_modules); do
# ... check that package.json and node_modules/.package.json are in sync
tools/node-modules verify "${commit}"
GITHUB_BASE=jelly tools/node-modules verify "${commit}"
done
2 changes: 1 addition & 1 deletion node_modules
51 changes: 26 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,32 @@
"stylelint:fix": "stylelint --fix src/*{.css,scss}"
},
"devDependencies": {
"argparse": "^2.0.1",
"chrome-remote-interface": "^0.32.1",
"esbuild": "^0.19.1",
"esbuild-plugin-copy": "^2.0.2",
"esbuild-plugin-replace": "^1.3.0",
"esbuild-sass-plugin": "^2.10.0",
"esbuild-wasm": "^0.19.1",
"eslint": "^8.45.0",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-config-standard-react": "^13.0.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"gettext-parser": "^3.0.0",
"htmlparser": "^1.7.7",
"jed": "^1.1.1",
"sass": "^1.59.3",
"sizzle": "^2.3.3",
"stylelint": "^14.9.1",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-formatter-pretty": "^3.1.1"
"argparse": "2.0.1",
"remarkable": "2.0.1",
"chrome-remote-interface": "0.30.0",
"esbuild": "0.19.1",
"esbuild-plugin-copy": "2.0.2",
"esbuild-plugin-replace": "1.3.0",
"esbuild-sass-plugin": "2.15.0",
"esbuild-wasm": "0.19.1",
"eslint": "8.45.0",
"eslint-config-standard": "17.0.0",
"eslint-config-standard-jsx": "11.0.0",
"eslint-config-standard-react": "13.0.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"gettext-parser": "3.0.0",
"htmlparser": "1.7.7",
"jed": "1.1.1",
"sass": "1.59.3",
"sizzle": "2.2.1",
"stylelint": "14.9.1",
"stylelint-config-standard-scss": "5.0.0",
"stylelint-formatter-pretty": "3.1.1"
},
"dependencies": {
"@patternfly/patternfly": "5.0.4",
Expand Down