@codfish/actions-playground 4.7.0 → 4.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.
@@ -10,6 +10,11 @@ on:
10
10
  - 'next-major'
11
11
  - '+([0-9])?(.{+([0-9]),x}).x'
12
12
 
13
+ permissions:
14
+ id-token: write
15
+ contents: write
16
+ issues: write
17
+
13
18
  jobs:
14
19
  release:
15
20
  runs-on: ubuntu-latest
@@ -71,16 +76,6 @@ jobs:
71
76
  env:
72
77
  SEMANTIC_OUTPUTS: ${{ toJson(steps.semantic-dry-run.outputs) }}
73
78
 
74
- - shell: bash
75
- if: steps.semantic.outputs.new-release-published == 'true'
76
- run: |
77
- echo "DOCKER_TAGS=${DOCKER_TAGS},${RELEASE_VERSION}" >> $GITHUB_ENV;
78
-
79
- - name: echo DOCKER_TAGS
80
- shell: bash
81
- run: |
82
- echo $DOCKER_TAGS;
83
-
84
79
  - name: semantic release
85
80
  uses: docker://ghcr.io/codfish/semantic-release-action@sha256:91ea452696d93a34a30aff20b34614b75e8fddc82b598fc8fa57c3ac07e6d6da
86
81
  id: semantic
@@ -127,19 +122,24 @@ jobs:
127
122
  ]
128
123
  }
129
124
  ],
130
- [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yaml']} ],
125
+ [ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
131
126
  '@semantic-release/release-notes-generator',
132
127
  '@semantic-release/npm',
133
128
  '@semantic-release/github'
134
129
  ]
135
130
  env:
136
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131
+ GITHUB_TOKEN: ${{ secrets.SEMANTIC_GH_TOKEN }}
137
132
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
138
133
 
139
134
  - shell: bash
140
135
  if: steps.semantic.outputs.new-release-published == 'true'
141
136
  run: |
142
- DOCKER_TAGS="${RELEASE_TAG},$"
137
+ echo "DOCKER_TAGS=${DOCKER_TAGS},${RELEASE_VERSION}" >> $GITHUB_ENV;
138
+
139
+ - name: echo DOCKER_TAGS
140
+ shell: bash
141
+ run: |
142
+ echo $DOCKER_TAGS;
143
143
 
144
144
  - name: push docker images to dockerhub & GCR
145
145
  if: steps.semantic.outputs.new-release-published == 'true'
@@ -16,8 +16,11 @@ jobs:
16
16
  fetch-depth: 0
17
17
 
18
18
  - uses: actions/setup-node@v3
19
+ id: setup-node
19
20
  with:
21
+ cache: 'npm'
20
22
  node-version-file: '.nvmrc'
23
+ registry-url: 'https://registry.npmjs.org'
21
24
 
22
25
  - name: troubleshooting
23
26
  env:
@@ -27,8 +30,15 @@ jobs:
27
30
  git branch -a
28
31
  echo "$GITHUB_CONTEXT"
29
32
 
33
+ - uses: actions/cache@v3
34
+ id: npm-cache
35
+ with:
36
+ path: node_modules
37
+ key: ${{ runner.os }}-node_modules-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('**/package-lock.json') }}
38
+
30
39
  - name: install dependencies
31
- run: npm ci
40
+ if: steps.npm-cache.outputs.cache-hit != 'true'
41
+ run: npm ci --prefer-offline --no-audit
32
42
 
33
43
  - run:
34
44
  npm run lint:commit -- --from="origin/${{ github.base_ref }}"
package/CODEOWNERS ADDED
@@ -0,0 +1,8 @@
1
+ # About CODEOWNERS: Syntax and Example
2
+ # https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3
+ #
4
+ # These owners will be the default owners for everything in
5
+ # the repo. Unless a later match takes precedence,
6
+ # @global-owner1 and @global-owner2 will be requested for
7
+ # review when someone opens a pull request.
8
+ * @codfish
package/Dockerfile CHANGED
@@ -10,7 +10,7 @@ RUN npm ci
10
10
  COPY ./src ./src
11
11
  COPY ./public ./public
12
12
 
13
- ENV RELEASE_VERSION=4.7.0
13
+ ENV RELEASE_VERSION=4.8.0
14
14
 
15
15
  RUN npm run build
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -1,3 +1,3 @@
1
- appVersion: 4.7.0
1
+ appVersion: 4.8.0
2
2
  name: actions-playground
3
- version: 4.7.0
3
+ version: 4.8.0