@codfish/actions 0.0.0-PR-89--65fc512 → 0.0.0-PR-58--24ced07

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -73,7 +73,6 @@ OIDC trusted publishing, and automatically comments on PR
73
73
  | `tarball` | Path to pre-built tarball to publish (e.g., '\*.tgz'). When provided, publishes the tarball with --ignore-scripts for security. Recommended for pull_request_target workflows to prevent execution of malicious lifecycle scripts. | No | - |
74
74
  | `comment` | Whether to comment on the PR with the published version (true/false) | No | `true` |
75
75
  | `comment-tag` | Tag to use for PR comments (for comment identification and updates) | No | `npm-publish-pr` |
76
- | `dev` | If true, use dev dependency install syntax in the PR comment (e.g. npm install -D, pnpm add -D). | No | `false` |
77
76
 
78
77
  **Outputs:**
79
78
 
File without changes
@@ -46,7 +46,7 @@ runs:
46
46
  - name: Check existing comments
47
47
  id: check-comments
48
48
  if: inputs.upsert == 'true'
49
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
49
+ uses: actions/github-script@v8
50
50
  with:
51
51
  script: |
52
52
  try {
@@ -69,7 +69,7 @@ runs:
69
69
 
70
70
  - name: Update existing comment
71
71
  if: steps.check-comments.outputs.comment-id != null
72
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
72
+ uses: actions/github-script@v8
73
73
  with:
74
74
  script: |
75
75
  try {
@@ -86,7 +86,7 @@ runs:
86
86
 
87
87
  - name: Create new comment
88
88
  if: steps.check-comments.outputs.comment-id == null
89
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8
89
+ uses: actions/github-script@v8
90
90
  with:
91
91
  script: |
92
92
  try {
@@ -267,7 +267,6 @@ The package is published under the `pr` tag, so it won't interfere with your reg
267
267
  | `tarball` | Path to pre-built tarball to publish (e.g., '\*.tgz'). When provided, publishes the tarball with --ignore-scripts for security. Recommended for pull_request_target workflows to prevent execution of malicious lifecycle scripts. | No | - |
268
268
  | `comment` | Whether to comment on the PR with the published version (true/false) | No | `true` |
269
269
  | `comment-tag` | Tag to use for PR comments (for comment identification and updates) | No | `npm-publish-pr` |
270
- | `dev` | If true, use dev dependency install syntax in the PR comment (e.g. npm install -D, pnpm add -D). | No | `false` |
271
270
 
272
271
  <!-- end inputs -->
273
272
 
@@ -42,7 +42,7 @@ runs:
42
42
  using: composite
43
43
 
44
44
  steps:
45
- - uses: codfish/actions/comment@a5d670e3eacf83aa1e1f906b86b04b8215c17e99 # v3
45
+ - uses: codfish/actions/comment@v3
46
46
  if: inputs.comment == 'true'
47
47
  with:
48
48
  message: ⏳ Publishing PR version...
@@ -332,7 +332,7 @@ runs:
332
332
  PR: ${{ github.event.number }}
333
333
  SHA: ${{ github.event.pull_request.head.sha }}
334
334
 
335
- - uses: codfish/actions/comment@a5d670e3eacf83aa1e1f906b86b04b8215c17e99 # v3
335
+ - uses: codfish/actions/comment@v3
336
336
  if: failure() && inputs.comment == 'true'
337
337
  with:
338
338
  message: |
@@ -344,7 +344,7 @@ runs:
344
344
  upsert: true
345
345
  tag: ${{ inputs.comment-tag }}
346
346
 
347
- - uses: codfish/actions/comment@a5d670e3eacf83aa1e1f906b86b04b8215c17e99 # v3
347
+ - uses: codfish/actions/comment@v3
348
348
  if: success() && inputs.comment == 'true'
349
349
  with:
350
350
  message: |
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Composite GitHub Actions for my projects.",
5
5
  "author": "Chris O'Donnell <chris@codfish.dev>",
6
6
  "license": "MIT",
7
- "version": "0.0.0-PR-89--65fc512",
7
+ "version": "0.0.0-PR-58--24ced07",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/codfish/actions.git"
@@ -19,16 +19,27 @@
19
19
  "bin",
20
20
  "README.md"
21
21
  ],
22
+ "scripts": {
23
+ "lint": "eslint .",
24
+ "fix": "eslint . --fix",
25
+ "format": "prettier --write \"**/*.{json,css,md,yml}\" --config ./node_modules/@codfish/eslint-config/prettier.js",
26
+ "test": "bash tests/scripts/test-runner.sh",
27
+ "test:integration": "bash tests/scripts/test-runner.sh integration",
28
+ "test:unit": "bash tests/scripts/test-runner.sh unit",
29
+ "docs:generate": "node bin/generate-docs.js",
30
+ "prepare": "husky"
31
+ },
22
32
  "devDependencies": {
23
- "@codfish/eslint-config": "13.1.2",
24
- "bats": "1.13.0",
25
- "doctoc": "2.3.0",
26
- "eslint": "10.1.0",
27
- "husky": "9.1.7",
28
- "js-yaml": "4.1.1",
29
- "lint-staged": "16.4.0",
30
- "prettier": "3.8.1"
33
+ "@codfish/eslint-config": "12.3.0",
34
+ "bats": "^1.13.0",
35
+ "doctoc": "^2.2.1",
36
+ "eslint": "^9.39.2",
37
+ "husky": "^9.1.7",
38
+ "js-yaml": "^4.1.0",
39
+ "lint-staged": "^16.2.7",
40
+ "prettier": "^3.8.1"
31
41
  },
42
+ "packageManager": "pnpm@10.29.3",
32
43
  "commitlint": {
33
44
  "extends": [
34
45
  "./node_modules/@codfish/eslint-config/commitlint.js"
@@ -42,13 +53,5 @@
42
53
  "prettier --write --config ./node_modules/@codfish/eslint-config/prettier.js",
43
54
  "doctoc --title '## Table of Contents'"
44
55
  ]
45
- },
46
- "scripts": {
47
- "lint": "eslint",
48
- "format": "eslint --fix",
49
- "test": "bash tests/scripts/test-runner.sh",
50
- "test:integration": "bash tests/scripts/test-runner.sh integration",
51
- "test:unit": "bash tests/scripts/test-runner.sh unit",
52
- "docs:generate": "node bin/generate-docs.js"
53
56
  }
54
57
  }
@@ -26,7 +26,7 @@ inputs:
26
26
  description:
27
27
  Whether to upgrade npm to v11.5.1. This is required for OIDC trusted publishing but can be disabled if you want to
28
28
  shave off some run time and you are still using token-based authentication.
29
- default: false
29
+ default: true
30
30
 
31
31
  outputs:
32
32
  node-version:
@@ -83,7 +83,7 @@ runs:
83
83
 
84
84
  - name: Install pnpm
85
85
  if: steps.detect-package-manager.outputs.package-manager == 'pnpm'
86
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
86
+ uses: pnpm/action-setup@v4
87
87
  id: pnpm-setup
88
88
  with:
89
89
  run_install: false
@@ -128,7 +128,7 @@ runs:
128
128
  INPUT_NODE_VERSION: ${{ inputs.node-version }}
129
129
 
130
130
  - name: Setup Node.js
131
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
131
+ uses: actions/setup-node@v6
132
132
  id: setup-node
133
133
  with:
134
134
  # use detected package manager cache
@@ -156,7 +156,7 @@ runs:
156
156
  if:
157
157
  steps.detect-package-manager.outputs.lockfile-exists == 'true' &&
158
158
  steps.detect-package-manager.outputs.package-manager == 'npm'
159
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
159
+ uses: actions/cache@v5
160
160
  id: cache
161
161
  with:
162
162
  path: ${{ inputs.working-directory }}/node_modules