@codfish/actions-playground 6.7.0 → 6.8.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.
@@ -11,7 +11,7 @@ on:
11
11
  - '+([0-9])?(.{+([0-9]),x}).x'
12
12
 
13
13
  permissions:
14
- contents: read
14
+ contents: write
15
15
  pull-requests: write
16
16
  issues: write
17
17
 
@@ -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: |
@@ -71,12 +80,13 @@ jobs:
71
80
 
72
81
  - run: cat Dockerfile
73
82
 
83
+ - name: install additional semantic release dependencies
84
+ run: pnpm add @google/semantic-release-replace-plugin @semantic-release/git conventional-changelog-conventionalcommits@7
85
+
74
86
  - name: semantic-release
75
87
  uses: codfish/semantic-release-action@pnpm
76
88
  id: semantic
77
89
  with:
78
- additional-packages: |
79
- ['@google/semantic-release-replace-plugin', '@semantic-release/git', 'conventional-changelog-conventionalcommits@7']
80
90
  plugins: |
81
91
  [
82
92
  '@semantic-release/commit-analyzer',
@@ -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,27 @@ 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
+ pnpm-dest: ${{ steps.pnpm-setup.outputs.dest }}
45
66
  env:
46
67
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
68
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48
69
 
49
70
  - name: install dependencies
50
71
  if: steps.npm-cache.outputs.cache-hit != 'true'
51
- run: npm ci --prefer-offline --no-audit
72
+ run: pnpm install
52
73
 
53
74
  - name: Retrieve text file
54
75
  uses: actions/download-artifact@v4
@@ -56,39 +77,16 @@ jobs:
56
77
  github-token: ${{ secrets.GITHUB_TOKEN }}
57
78
 
58
79
  - run:
59
- npm run lint:commit -- --from="origin/${{ github.base_ref }}"
80
+ pnpm lint:commit -- --from="origin/${{ github.base_ref }}"
60
81
  --to="origin/${{github.head_ref }}"
61
82
  env:
62
83
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
63
84
 
64
85
  - name: lint js
65
- run: npm run lint
86
+ run: pnpm lint
66
87
 
67
88
  - name: lint markdown
68
- run: npm run lint:md
89
+ run: pnpm lint:md
69
90
 
70
91
  - 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
- })
92
+ 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.0
15
+ ENV RELEASE_VERSION=6.8.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.0",
3
+ "version": "6.8.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": {
@@ -40,9 +41,12 @@
40
41
  },
41
42
  "dependencies": {
42
43
  "@babel/runtime": "^7.7.4",
44
+ "@google/semantic-release-replace-plugin": "^1.2.7",
45
+ "@semantic-release/git": "^10.0.1",
43
46
  "@testing-library/jest-dom": "^5.16.5",
44
47
  "@testing-library/react": "^13.3.0",
45
48
  "@testing-library/user-event": "^14.4.3",
49
+ "conventional-changelog-conventionalcommits": "^7.0.2",
46
50
  "react": "^18.2.0",
47
51
  "react-dom": "^18.2.0",
48
52
  "react-scripts": "^5.0.1",
@@ -53,12 +57,6 @@
53
57
  "./node_modules/cod-scripts/eslint.js"
54
58
  ]
55
59
  },
56
- "husky": {
57
- "hooks": {
58
- "pre-commit": "cod-scripts pre-commit",
59
- "commit-msg": "cod-scripts commitlint -E HUSKY_GIT_PARAMS"
60
- }
61
- },
62
60
  "browserslist": {
63
61
  "production": [
64
62
  ">0.2%",
@@ -1,3 +1,3 @@
1
- appVersion: 6.7.0
1
+ appVersion: 6.8.0
2
2
  name: actions-playground
3
- version: 6.7.0
3
+ version: 6.8.0