Skip to content

Commit

Permalink
build(deps)!: update npm dependencies
Browse files Browse the repository at this point in the history
- default node version of all actions using @actions/setup-node is now 18
  • Loading branch information
EdieLemoine committed Jan 16, 2023
1 parent 4a9197d commit 4c30dc5
Show file tree
Hide file tree
Showing 20 changed files with 2,025 additions and 1,097 deletions.
2,295 changes: 1,389 additions & 906 deletions .pnp.cjs
100755 → 100644

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
42 changes: 8 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ This is a collection of reusable composite actions for GitHub Actions workflows.
- [compare-branches](#compare-branches)
- [Miscellaneous](#miscellaneous)
- [cache-nx](#cache-nx)
- [Workflows](#workflows)
- [Semantic Release](#semantic-release-workflow)

## General usage

Expand Down Expand Up @@ -82,7 +80,7 @@ Will use every patch update within `v2.1.x`.
```yaml
- uses: myparcelnl/actions/npm-install@v2
with:
node-version: 16
node-version: 18
```

#### yarn-install
Expand All @@ -100,15 +98,15 @@ For use with Yarn 1.
```yaml
- uses: myparcelnl/actions/yarn-install@v2
with:
node-version: 16
node-version: 18
yarn-args: --frozen-lockfile --ignore-scripts
```

##### Inputs

| required | name | description | Example | Default |
|----------|----------------|------------------------------------|--------------------------------------|---------|
| No | `node-version` | The Node.js version to use | `16` | `16` |
| No | `node-version` | The Node.js version to use | `18` | `18` |
| No | `yarn-args` | Arguments to use with yarn install | `--frozen-lockfile --ignore-scripts` | ` ` |

#### yarn2-install
Expand All @@ -127,15 +125,15 @@ For use with Yarn 2 (berry).
```yaml
- uses: myparcelnl/actions/yarn2-install@v2
with:
node-version: 16
node-version: 18
yarn-args: --immutable --immutable-cache
```

##### Inputs

| required | name | description | Example | Default |
|----------|----------------|------------------------------------|---------------------------------|---------|
| No | `node-version` | The Node.js version to use | `16` | `16` |
| No | `node-version` | The Node.js version to use | `18` | `18` |
| No | `yarn-args` | Arguments to use with yarn install | `--immutable --immutable-cache` | ` ` |

#### pnpm-install
Expand All @@ -152,7 +150,7 @@ For use with Yarn 2 (berry).
```yaml
- uses: myparcelnl/actions/pnpm-install@v2
with:
node-version: 16
node-version: 18
pnpm-version: 7.4.0
pnpm-args: --ignore-scripts --frozen-lockfile
```
Expand All @@ -161,7 +159,7 @@ For use with Yarn 2 (berry).

| required | name | description | Example | Default |
|----------|----------------|------------------------------------|--------------------------------------|---------------------|
| No | `node-version` | The Node.js version to use | `16` | `16` |
| No | `node-version` | The Node.js version to use | `18` | `18` |
| No | `pnpm-version` | The pnpm version to use | `7.4.0` | `7.6.0` |
| No | `pnpm-args` | Arguments to use with pnpm install | `--ignore-scripts --frozen-lockfile` | `--frozen-lockfile` |

Expand All @@ -180,7 +178,7 @@ For use with Yarn 2 (berry).
- name:
uses: myparcelnl/actions/setup-node@v2
with:
node-version: 16
node-version: 18
```

### PHP
Expand Down Expand Up @@ -478,30 +476,6 @@ Save and restore the [Nx](https://nx.dev/) cache. Defaults to using `yarn.lock`
lockfile: package-lock.json
```

## Workflows

### Semantic Release workflow

[Source](.github/workflows/--semantic-release.yml)

- Runs [actions/checkout]@v3
- Runs [yarn-install]
- Runs [semantic-release]

#### Example

```yaml
# These should be defined in your repository if they are needed.
env:
GH_REPO_TOKEN: ... # Falls back to GITHUB_TOKEN
NPM_TOKEN: ...

jobs:
release:
uses: myparcelnl/actions/.github/workflows/--semantic-release.yml@v2
secrets: inherit
```

[Codecov]: https://codecov.io

[actions/checkout]: https://github.com/actions/checkout
Expand Down
2 changes: 1 addition & 1 deletion npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Install npm dependencies from scratch or from cache
inputs:
node-version:
description: 'The Node.js version to use'
default: '16'
default: '18'
required: false

runs:
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@
"semver": "^7.3.8"
},
"devDependencies": {
"@myparcel-eslint/eslint-config-esnext": "^1.0.0-alpha.2",
"@myparcel-eslint/eslint-config-node": "^1.0.0-alpha.2",
"@myparcel-eslint/eslint-config-prettier-typescript": "^1.0.0-alpha.7",
"@myparcel/prettier-config": "^1.1.0",
"@myparcel/semantic-release-config": "^4.0.0",
"@types/node": "^16.18.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"eslint": "^8.27.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
"semantic-release": "^19.0.5",
"tsup": "^6.3.0",
"typescript": "^4.8.4"
"@myparcel-eslint/eslint-config-esnext": "^1.2.0",
"@myparcel-eslint/eslint-config-node": "^1.2.0",
"@myparcel-eslint/eslint-config-prettier-typescript": "^1.2.0",
"@myparcel/semantic-release-config": "^4.1.0",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^18.11.18",
"eslint": "^8.32.0",
"prettier": "^2.8.3",
"semantic-release": "^20.0.2",
"supports-color": "^9.3.1",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
},
"packageManager": "yarn@3.2.4"
}
2 changes: 1 addition & 1 deletion pnpm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Install pnpm dependencies from scratch or from cache'
inputs:
node-version:
description: 'The Node.js version to use'
default: '16'
default: '18'
required: false

pnpm-version:
Expand Down
2 changes: 1 addition & 1 deletion setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Setup Node'
inputs:
node-version:
description: 'The Node.js version to use'
default: '16'
default: '18'
required: false

runs:
Expand Down
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"target": "ESNext",
"strict": true,
"moduleResolution": "node",
"types": [
"node"
],
"allowSyntheticDefaultImports": true
},
"exclude": [
"node_modules"
]
}
}
2 changes: 1 addition & 1 deletion yarn-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: 'Install yarn dependencies from scratch or from cache'
inputs:
node-version:
description: 'The Node.js version to use'
default: '16'
default: '18'
required: false

yarn-args:
Expand Down

0 comments on commit 4c30dc5

Please sign in to comment.