@codfish/actions-playground 0.0.0-PR-98--f43d338 → 0.0.0-PR-98--6b8b2a3

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.
@@ -41,24 +41,63 @@ jobs:
41
41
  echo "$PNPM_CONTEXT"
42
42
  echo "PNPM_HOME: $PNPM_HOME"
43
43
 
44
- - uses: actions/setup-node@v4
45
- with:
46
- node-version-file: 'package.json'
47
- cache: 'pnpm'
48
-
49
- - name: Install dependencies
50
- run: pnpm install --frozen-lockfile
44
+ - uses: codfish/actions/setup-node-and-install@npm-trusted-publishing
51
45
 
52
- - name: Ensure npm 11.5.1+ for trusted publishing
53
- run: |
54
- echo "Current npm version: $(npm --version)"
55
- # npm 11.5.1+ is required for OIDC trusted publishing (Jan 2026)
56
- npm install -g npm@latest
57
- echo "Updated npm version: $(npm --version)"
58
- if [ "$(npm --version | cut -d. -f1)" -lt 11 ]; then
59
- echo "ERROR: npm 11.5.1+ is required for trusted publishing"
60
- exit 1
61
- fi
46
+ - name: semantic release dry run
47
+ uses: docker://ghcr.io/codfish/semantic-release-action@sha256:327a3ce08284f9dd9b83b607e3f668dae90139e68ce90780b0a43a09d577dc3a
48
+ with:
49
+ dry-run: true
50
+ additional-packages: |
51
+ ['@google/semantic-release-replace-plugin', '@semantic-release/git', 'conventional-changelog-conventionalcommits@7']
52
+ plugins: |
53
+ [
54
+ '@semantic-release/commit-analyzer',
55
+ [
56
+ '@google/semantic-release-replace-plugin',
57
+ {
58
+ 'replacements': [
59
+ {
60
+ 'files': ['Dockerfile'],
61
+ 'from': 'RELEASE_VERSION=.*',
62
+ 'to': 'RELEASE_VERSION=${nextRelease.version}'
63
+ },
64
+ {
65
+ 'files': ['provisioning/Chart.yml'],
66
+ 'from': 'ersion: .*',
67
+ 'to': 'ersion: ${nextRelease.version}'
68
+ }
69
+ ]
70
+ }
71
+ ],
72
+ [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
73
+ [
74
+ "@semantic-release/release-notes-generator",
75
+ {
76
+ "preset": "conventionalcommits",
77
+ "presetConfig": {
78
+ "types": [
79
+ { type: 'feat', section: 'Features', hidden: false },
80
+ { type: 'fix', section: 'Bug Fixes', hidden: false },
81
+ { type: 'perf', section: 'Performance Improvements', hidden: false },
82
+ { type: 'revert', section: 'Reverts', hidden: false },
83
+ { type: 'docs', section: 'Other Updates', hidden: false },
84
+ { type: 'style', section: 'Other Updates', hidden: false },
85
+ { type: 'chore', section: 'Other Updates', hidden: false },
86
+ { type: 'refactor', section: 'Other Updates', hidden: false },
87
+ { type: 'test', section: 'Other Updates', hidden: false },
88
+ { type: 'build', section: 'Other Updates', hidden: false },
89
+ { type: 'ci', section: 'Other Updates', hidden: false }
90
+ ]
91
+ }
92
+ }
93
+ ],
94
+ '@semantic-release/npm',
95
+ '@semantic-release/github'
96
+ ]
97
+ pnpm-dest: ${{ steps.pnpm-setup.outputs.dest }}
98
+ env:
99
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
62
101
 
63
102
  - name: Retrieve text file
64
103
  uses: actions/download-artifact@v4
@@ -74,26 +113,10 @@ jobs:
74
113
  - name: run tests
75
114
  run: pnpm test
76
115
 
77
- - name: Publish PR package (direct)
78
- if: github.event.pull_request.head.repo.full_name == github.repository
79
- shell: bash
80
- env:
81
- PR_NUMBER: ${{ github.event.number }}
82
- PR_SHA: ${{ github.event.pull_request.head.sha }}
83
- run: |
84
- set -euo pipefail
85
-
86
- short_sha="$(echo "$PR_SHA" | cut -c -7)"
87
- version="0.0.0-PR-${PR_NUMBER}--${short_sha}"
88
- echo "Publishing $(jq -r '.name' package.json)@$version via OIDC trusted publishing"
89
- npm version "$version" --no-git-tag-version
90
-
91
- # CRITICAL: Do not set, unset, or manipulate NODE_AUTH_TOKEN or NPM_TOKEN
92
- # They must not exist in the environment for OIDC to work
93
- echo "npm version: $(npm --version)"
94
-
95
- # Publish with OIDC - npm will automatically use OIDC when --provenance is used
96
- npm publish --access public --tag pr --provenance
116
+ - uses: codfish/actions/npm-publish-pr@npm-trusted-publishing
117
+ with:
118
+ github-token: ${{ secrets.GITHUB_TOKEN }}
119
+ # npm-token: ${{ secrets.NPM_TOKEN }}
97
120
 
98
121
  - name: Build package
99
122
  run: pnpm build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "0.0.0-PR-98--f43d338",
3
+ "version": "0.0.0-PR-98--6b8b2a3",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {