Skip to content

Commit

Permalink
Update list source
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Nov 29, 2023
1 parent 6769bb1 commit b0b08d5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,22 @@ jobs:
exit 1
fi
- run: npm run build
- run: npm t
- run: npm t -- -u
- name: commit auto fixes
env:
USERNAME: ${{ github.actor }}
BRANCH: ${{ github.ref_name }}
REPO: ${{ github.repository }}
TOKEN: ${{ secrets.GH_TOKEN }}
run: |
if [ "$(git diff --quiet && echo 0 || echo $?)" -gt 0 ]; then
git config --global user.email "${USERNAME}@users.noreply.github.com" --replace-all
git config --global user.name "$USERNAME" --replace-all
git commit -am "😎 Autofix"
git remote set-url origin https://${TOKEN}@github.com/$REPO.git
git push origin $BRANCH
exit 1
fi
- name: Add NPM token
if: github.ref == 'refs/heads/main'
env:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## 2.0.5

- Update list source
- Add: 477-500

## 2.0.4

- Add: 476
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-error-decoder",
"version": "2.0.4",
"version": "2.0.5",
"description": "⚛︎ Decode React minified error message",
"keywords": [
"react",
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"types": "index.d.ts",
"scripts": {
"prepare": "curl https://legacy.reactjs.org/page-data/docs/error-decoder.html/page-data.json | jq '.result.data.errorCodesJson.internal.contentDigest' -r > src/collection.json",
"prepare": "curl https://raw.githubusercontent.com/facebook/react/main/scripts/error-codes/codes.json > src/collection.json",
"build": "./scripts/build.sh",
"format": "prettier --write .",
"lint": "prettier --check .",
Expand Down

0 comments on commit b0b08d5

Please sign in to comment.