Skip to content

Commit

Permalink
Update action to Node.js version 20, POST requests now done with `f…
Browse files Browse the repository at this point in the history
…etch()` (#57)
  • Loading branch information
mangs authored Mar 29, 2024
1 parent 6f9cfea commit 7984299
Show file tree
Hide file tree
Showing 12 changed files with 3,316 additions and 3,429 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publishReleaseNotesWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.17.0"
node-version: "20.11.1"

# Task execution
- name: Run mangs/simple-release-notes-action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pullRequestWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.17.0"
node-version: "20.11.1"
- uses: mangs/super-cache-action@v3
id: super-cache
- if: steps.super-cache.outputs.cache-hit != 'true'
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.2.0

- Latest major tag now automatically updated to the latest commit SHA when new release is published
- Update action to Node.js version 20
- `POST` requests now done with `fetch()`
- Linting now uses `@babbel/eslint-config`
- Due to download reliability problems, NPM scripts `list:todo-comments` and `list:eslint:disable-directives` use a local version of Ripgrep instead of one downloaded from NPM
- Update dependencies to latest

## 2.1.4

- Update dependencies to latest
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ inputs:
description: Prefix to create a tag by combining this and the target version number; this is default behavior
required: false
runs:
using: node16
using: node20
main: ./scripts/publishReleaseNotes.mjs
54 changes: 2 additions & 52 deletions config/eslint/eslintConfig.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,6 @@
{
"plugins": [
"eslint-plugin-eslint-comments",
"eslint-plugin-import",
"eslint-plugin-regexp",
"eslint-plugin-unicorn"
],
"extends": [
"eslint-config-airbnb-base",
"plugin:eslint-comments/recommended",
"plugin:import/recommended",
"plugin:regexp/recommended",
"plugin:unicorn/recommended",
"eslint-config-prettier"
],
"reportUnusedDisableDirectives": true,
"env": {
"browser": false,
"es2022": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"ecmaVersion": 2022,
"sourceType": "module"
},
"extends": ["@babbel/eslint-config/node"],
"rules": {
"curly": ["error", "all"],
"eslint-comments/no-unused-disable": "error",
"eslint-comments/require-description": "error",
"import/extensions": ["error", "ignorePackages"],
"import/no-default-export": "error",
"import/prefer-default-export": "off",
"import/order": [
"error",
{
"groups": [
["builtin", "external"],
["internal", "unknown", "parent", "sibling", "index", "object", "type"]
],
"newlines-between": "always"
}
],
"no-console": "off",
"no-restricted-syntax": "off",
"no-use-before-define": ["error", { "functions": false }],
"require-await": "error",
"sort-keys": "error",
"sort-vars": "error",
"unicorn/filename-case": ["error", { "case": "camelCase" }],
"unicorn/numeric-separators-style": ["error", { "number": { "minimumDigits": 0 } }],
"unicorn/relative-url-style": ["error", "always"]
"n/shebang": "off"
}
}
10 changes: 3 additions & 7 deletions config/vscode/vscodeProjectConfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"compilerOptions": {
"checkJs": true,
"module": "es2022",
"checkJs": false,
"module": "ES2022",
"moduleResolution": "Node",
"target": "ES2021"
},
"exclude": ["build", "dist", "node_modules"],
"typeAcquisition": {
"include": ["jest"]
"target": "ES2022"
}
}
Loading

0 comments on commit 7984299

Please sign in to comment.