@codfish/actions-playground 4.1.0 → 4.2.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.
@@ -22,7 +22,7 @@ jobs:
22
22
 
23
23
  - uses: actions/setup-node@v1
24
24
  with:
25
- node-version: 16.x
25
+ node-version: 18.x
26
26
 
27
27
  - name: docker login
28
28
  run: |
@@ -59,7 +59,9 @@ jobs:
59
59
  env:
60
60
  SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
61
61
 
62
- - uses: codfish/semantic-release-action@additional-packages
62
+ - name: semantic release
63
+ uses: docker://ghcr.io/codfish/semantic-release-action:v1
64
+ id: semantic
63
65
  with:
64
66
  branches: |
65
67
  ['main', 'next', 'next-major', {name: 'beta', prerelease: true}, {name: 'alpha', prerelease: true}]
@@ -67,87 +69,69 @@ jobs:
67
69
  ['@google/semantic-release-replace-plugin', '@semantic-release/git']
68
70
  plugins: |
69
71
  [
70
- "@semantic-release/commit-analyzer",
72
+ '@semantic-release/commit-analyzer',
71
73
  [
72
- "@google/semantic-release-replace-plugin",
74
+ '@google/semantic-release-replace-plugin',
73
75
  {
74
- "replacements": [
76
+ 'replacements': [
75
77
  {
76
- "files": ["Dockerfile"],
77
- "from": "RELEASE_VERSION=.*",
78
- "to": "RELEASE_VERSION=${nextRelease.version}",
79
- "results": [
78
+ 'files': ['Dockerfile'],
79
+ 'from': 'RELEASE_VERSION=.*',
80
+ 'to': 'RELEASE_VERSION=${nextRelease.version}',
81
+ 'results': [
80
82
  {
81
- "file": "Dockerfile",
82
- "hasChanged": true,
83
- "numMatches": 1,
84
- "numReplacements": 1
83
+ 'file': 'Dockerfile',
84
+ 'hasChanged': true,
85
+ 'numMatches': 1,
86
+ 'numReplacements': 1
85
87
  }
86
88
  ],
87
- "countMatches": true
89
+ 'countMatches': true
88
90
  }
89
91
  ]
90
92
  }
91
93
  ],
92
94
  [
93
- "@semantic-release/git",
95
+ '@semantic-release/git',
94
96
  {
95
- "assets": ["Dockerfile"],
96
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
97
+ 'assets': ['Dockerfile'],
98
+ 'message': 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
97
99
  }
98
100
  ],
99
- "@semantic-release/release-notes-generator",
100
- "@semantic-release/npm",
101
- "@semantic-release/github"
101
+ '@semantic-release/release-notes-generator',
102
+ '@semantic-release/npm',
103
+ '@semantic-release/github'
102
104
  ]
103
105
  env:
104
106
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105
107
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
106
108
 
107
- # - name: semantic release
108
- # uses: docker://ghcr.io/codfish/semantic-release-action:v1
109
- # id: semantic
110
- # with:
111
- # branches: |
112
- # [
113
- # '+([0-9])?(.{+([0-9]),x}).x',
114
- # 'main',
115
- # 'next',
116
- # 'next-major',
117
- # {name: 'beta', prerelease: true},
118
- # {name: 'alpha', prerelease: true}
119
- # ]
120
- # env:
121
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
123
-
124
- # - name: push docker images to dockerhub & GCR
125
- # if: steps.semantic.outputs.new-release-published == 'true'
126
- # run: |
127
- # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
128
- # docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
129
- # docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
130
- # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
131
- # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
132
-
133
- # docker push codfish/actions-playground:latest
134
- # docker push codfish/actions-playground:$VERSION_TAG
135
- # docker push codfish/actions-playground:$MAJOR_TAG
136
- # docker push ghcr.io/codfish/actions-playground:latest
137
- # docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
138
- # docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
139
- # env:
140
- # VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
141
- # MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
109
+ - name: push docker images to dockerhub & GCR
110
+ if: steps.semantic.outputs.new-release-published == 'true'
111
+ run: |
112
+ docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
113
+ docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
114
+ docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
115
+ docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
116
+ docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
142
117
 
143
- # - name: build docs
144
- # run: |
145
- # npm ci --no-save
146
- # npm run build:docs
147
- # rm ./docs/.gitignore
148
- # env:
149
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
118
+ docker push codfish/actions-playground:latest
119
+ docker push codfish/actions-playground:$VERSION_TAG
120
+ docker push codfish/actions-playground:$MAJOR_TAG
121
+ docker push ghcr.io/codfish/actions-playground:latest
122
+ docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
123
+ docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
124
+ env:
125
+ VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
126
+ MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
150
127
 
128
+ - name: build docs
129
+ run: |
130
+ npm ci --no-save
131
+ npm run build:docs
132
+ rm ./docs/.gitignore
133
+ env:
134
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
151
135
  # does not work...
152
136
  # Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
153
137
  # Deployment failed! ❌
@@ -158,6 +142,3 @@ jobs:
158
142
  # with:
159
143
  # branch: gh-pages
160
144
  # folder: docs
161
-
162
- # - name: Install extra dependencies
163
- # run: npm install -g @semantic-release/exec
@@ -14,7 +14,7 @@ jobs:
14
14
 
15
15
  - uses: actions/setup-node@v1
16
16
  with:
17
- node-version: 16.x
17
+ node-version: 18.x
18
18
  registry-url: 'https://registry.npmjs.org'
19
19
 
20
20
  - name: troubleshooting
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 18.7.0
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:12
1
+ FROM node:18.7.0
2
2
 
3
3
  RUN mkdir /app
4
4
  WORKDIR /app
@@ -8,7 +8,7 @@ RUN npm ci
8
8
 
9
9
  COPY src src
10
10
 
11
- ENV RELEASE_VERSION=4.1.0
11
+ ENV RELEASE_VERSION=4.2.0
12
12
 
13
13
  RUN npm run build
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "main": "dist/index.js",
6
6
  "private": false,