@codfish/actions-playground 6.7.1 → 6.9.0

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.
@@ -28,9 +28,18 @@ jobs:
28
28
  with:
29
29
  persist-credentials: false
30
30
 
31
- - uses: actions/setup-node@v4
31
+ - name: 'Install pnpm'
32
+ id: pnpm-setup
33
+ uses: pnpm/action-setup@v4
32
34
  with:
33
- node-version-file: .nvmrc
35
+ run_install: false
36
+
37
+ - uses: actions/setup-node@v5
38
+ id: setup-node
39
+ with:
40
+ cache: 'pnpm'
41
+ node-version-file: '.nvmrc'
42
+ registry-url: 'https://registry.npmjs.org'
34
43
 
35
44
  - shell: bash
36
45
  run: |
@@ -18,7 +18,7 @@ jobs:
18
18
  node-version: 20
19
19
 
20
20
  - name: install commitlint deps
21
- run: npm install @commitlint/{cli,config-angular}
21
+ run: pnpm add @commitlint/{cli,config-angular}
22
22
 
23
23
  # todo: loosen restrictions set in @commitlint/config-angular to allow for more flexibility
24
24
  - name: create commitlint config without yaml errors
@@ -15,10 +15,23 @@ jobs:
15
15
  with:
16
16
  fetch-depth: 0
17
17
 
18
- - uses: actions/setup-node@v3
18
+ - name: 'Install pnpm'
19
+ id: pnpm-setup
20
+ uses: pnpm/action-setup@v4
21
+ with:
22
+ run_install: false
23
+
24
+ - name: Dump pnpm outputs
25
+ env:
26
+ PNPM_CONTEXT: ${{ toJson(steps.pnpm-setup.outputs) }}
27
+ run: |
28
+ echo "$PNPM_CONTEXT"
29
+ echo "PNPM_HOME: $PNPM_HOME"
30
+
31
+ - uses: actions/setup-node@v5
19
32
  id: setup-node
20
33
  with:
21
- cache: 'npm'
34
+ cache: 'pnpm'
22
35
  node-version-file: '.nvmrc'
23
36
  registry-url: 'https://registry.npmjs.org'
24
37
 
@@ -36,19 +49,74 @@ jobs:
36
49
  path: node_modules
37
50
  key:
38
51
  ${{ runner.os }}-node_modules-${{ steps.setup-node.outputs.node-version }}-${{
39
- hashFiles('**/package-lock.json') }}
52
+ hashFiles('**/pnpm-lock.yaml') }}
53
+
54
+ - name: install dependencies
55
+ if: steps.npm-cache.outputs.cache-hit != 'true'
56
+ run: pnpm install
57
+
58
+ # - name: install additional semantic release dependencies
59
+ # run: pnpm add @google/semantic-release-replace-plugin @semantic-release/git conventional-changelog-conventionalcommits@7
40
60
 
41
61
  - name: semantic release dry run
42
- uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4c0955361cf42e5ab9bb05df3a1e2a781c443f9760b63a68957689445051a2fb
62
+ uses: codfish/semantic-release-action@pnpm
43
63
  with:
44
64
  dry-run: true
65
+ additional-packages: |
66
+ ['@google/semantic-release-replace-plugin', '@semantic-release/git', 'conventional-changelog-conventionalcommits@7']
67
+ plugins: |
68
+ [
69
+ '@semantic-release/commit-analyzer',
70
+ [
71
+ '@google/semantic-release-replace-plugin',
72
+ {
73
+ 'replacements': [
74
+ {
75
+ 'files': ['Dockerfile'],
76
+ 'from': 'RELEASE_VERSION=.*',
77
+ 'to': 'RELEASE_VERSION=${nextRelease.version}'
78
+ },
79
+ {
80
+ 'files': ['provisioning/Chart.yml'],
81
+ 'from': 'ersion: .*',
82
+ 'to': 'ersion: ${nextRelease.version}'
83
+ }
84
+ ]
85
+ }
86
+ ],
87
+ [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
88
+ [
89
+ "@semantic-release/release-notes-generator",
90
+ {
91
+ "preset": "conventionalcommits",
92
+ "presetConfig": {
93
+ "types": [
94
+ { type: 'feat', section: 'Features', hidden: false },
95
+ { type: 'fix', section: 'Bug Fixes', hidden: false },
96
+ { type: 'perf', section: 'Performance Improvements', hidden: false },
97
+ { type: 'revert', section: 'Reverts', hidden: false },
98
+ { type: 'docs', section: 'Other Updates', hidden: false },
99
+ { type: 'style', section: 'Other Updates', hidden: false },
100
+ { type: 'chore', section: 'Other Updates', hidden: false },
101
+ { type: 'refactor', section: 'Other Updates', hidden: false },
102
+ { type: 'test', section: 'Other Updates', hidden: false },
103
+ { type: 'build', section: 'Other Updates', hidden: false },
104
+ { type: 'ci', section: 'Other Updates', hidden: false }
105
+ ]
106
+ }
107
+ }
108
+ ],
109
+ '@semantic-release/npm',
110
+ '@semantic-release/github'
111
+ ]
112
+ pnpm-dest: ${{ steps.pnpm-setup.outputs.dest }}
45
113
  env:
46
114
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
115
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48
116
 
49
117
  - name: install dependencies
50
118
  if: steps.npm-cache.outputs.cache-hit != 'true'
51
- run: npm ci --prefer-offline --no-audit
119
+ run: pnpm install
52
120
 
53
121
  - name: Retrieve text file
54
122
  uses: actions/download-artifact@v4
@@ -56,39 +124,16 @@ jobs:
56
124
  github-token: ${{ secrets.GITHUB_TOKEN }}
57
125
 
58
126
  - run:
59
- npm run lint:commit -- --from="origin/${{ github.base_ref }}"
127
+ pnpm lint:commit -- --from="origin/${{ github.base_ref }}"
60
128
  --to="origin/${{github.head_ref }}"
61
129
  env:
62
130
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
63
131
 
64
132
  - name: lint js
65
- run: npm run lint
133
+ run: pnpm lint
66
134
 
67
135
  - name: lint markdown
68
- run: npm run lint:md
136
+ run: pnpm lint:md
69
137
 
70
138
  - name: run tests
71
- run: npm run test
72
-
73
- - name: publish to npm
74
- id: pr-publish
75
- run: |
76
- version="0.0.0-PR-${PR}--$(echo ${SHA} | cut -c -7)"
77
- npm version $version --no-git-tag-version
78
- npm publish --access public --tag pr
79
- echo "::set-output name=pr_version::$version"
80
- env:
81
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
82
- PR: ${{ github.event.number }}
83
- SHA: ${{ github.event.pull_request.head.sha }}
84
-
85
- - uses: actions/github-script@v3
86
- with:
87
- github-token: ${{secrets.GITHUB_TOKEN}}
88
- script: |
89
- github.issues.createComment({
90
- issue_number: context.issue.number,
91
- owner: context.repo.owner,
92
- repo: context.repo.repo,
93
- body: '🚀 PR version published: `${{ steps.pr-publish.outputs.pr_version }}`'
94
- })
139
+ run: pnpm test
package/Dockerfile CHANGED
@@ -3,16 +3,18 @@ FROM node:22.18.0
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
5
5
 
6
- COPY ./package.json ./package-lock.json ./
7
-
8
- RUN npm ci
6
+ COPY ./package.json ./pnpm-lock.yaml ./
7
+ ENV PNPM_HOME="/pnpm"
8
+ ENV PATH="$PNPM_HOME:$PATH"
9
+ RUN corepack enable
10
+ RUN pnpm install
9
11
 
10
12
  COPY ./src ./src
11
13
  COPY ./public ./public
12
14
 
13
- ENV RELEASE_VERSION=6.7.1
15
+ ENV RELEASE_VERSION=6.9.0
14
16
 
15
- RUN npm run build
17
+ RUN pnpm build
16
18
 
17
19
  EXPOSE 80
18
- CMD ["npm", "start"]
20
+ CMD ["pnpm", "start"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "6.7.1",
3
+ "version": "6.9.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -25,6 +25,7 @@
25
25
  "keywords": [
26
26
  "foobar"
27
27
  ],
28
+ "packageManager": "pnpm@10.17.0",
28
29
  "author": "",
29
30
  "license": "MIT",
30
31
  "bugs": {
@@ -53,12 +54,6 @@
53
54
  "./node_modules/cod-scripts/eslint.js"
54
55
  ]
55
56
  },
56
- "husky": {
57
- "hooks": {
58
- "pre-commit": "cod-scripts pre-commit",
59
- "commit-msg": "cod-scripts commitlint -E HUSKY_GIT_PARAMS"
60
- }
61
- },
62
57
  "browserslist": {
63
58
  "production": [
64
59
  ">0.2%",
@@ -1,3 +1,3 @@
1
- appVersion: 6.7.1
1
+ appVersion: 6.9.0
2
2
  name: actions-playground
3
- version: 6.7.1
3
+ version: 6.9.0
package/test.txt CHANGED
@@ -4,6 +4,3 @@ test release with a chore
4
4
 
5
5
  test latest release
6
6
 
7
- feature release 2
8
-
9
- breaking update