File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 34
34
key : ${{ runner.os }}-shadow-cljs-${{ github.sha }}
35
35
restore-keys : |
36
36
${{ runner.os }}-shadow-cljs-
37
- - run : lein karma-once
37
+ # The git update-index command is required to ignore changes to package.json as
38
+ # 1. package.json must be comitted to the repo for npm install --save... to behave correctly, which is used by
39
+ # lein-shadow to install dependencies that would cause the build to fail if missing; e.g. karma
40
+ # 2. .gitignore does nothing for files that are already comitted
41
+ # 3. git recognising package.json modifications would cause day8/lein-git-inject to always incorrectly use
42
+ # -SNAPSHOT versions.
43
+ - run : |
44
+ git update-index --assume-unchanged package.json
45
+ lein karma-once
38
46
- name : Slack notification
39
47
uses : homoluctus/slatify@v2.0.1
40
48
if : failure() || cancelled()
61
69
key : ${{ runner.os }}-maven-${{ hashFiles('project.clj') }}
62
70
restore-keys : |
63
71
${{ runner.os }}-maven-
72
+ # The git update-index command is required to ignore changes to package.json as
73
+ # 1. package.json must be comitted to the repo for npm install --save... to behave correctly, which is used by
74
+ # lein-shadow to install dependencies that would cause the build to fail if missing; e.g. karma
75
+ # 2. .gitignore does nothing for files that are already comitted
76
+ # 3. git recognising package.json modifications would cause day8/lein-git-inject to always incorrectly use
77
+ # -SNAPSHOT versions.
64
78
- name : Run lein release
65
79
run : |
80
+ git update-index --assume-unchanged package.json
66
81
CLOJARS_USERNAME=${{ secrets.CLOJARS_USERNAME }} CLOJARS_TOKEN=${{ secrets.CLOJARS_TOKEN }} GITHUB_USERNAME=${{ github.actor }} GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} lein release
67
82
# This creates a 'GitHub Release' from the tag and includes link to the CHANGELOG
68
83
# at that point in the Git history. We do not use draft or prerelease features as
Original file line number Diff line number Diff line change 31
31
key : ${{ runner.os }}-shadow-cljs-${{ github.sha }}
32
32
restore-keys : |
33
33
${{ runner.os }}-shadow-cljs-
34
- - run : lein karma-once
34
+ # The git update-index command is required to ignore changes to package.json as
35
+ # 1. package.json must be comitted to the repo for npm install --save... to behave correctly, which is used by
36
+ # lein-shadow to install dependencies that would cause the build to fail if missing; e.g. karma
37
+ # 2. .gitignore does nothing for files that are already comitted
38
+ # 3. git recognising package.json modifications would cause day8/lein-git-inject to always incorrectly use
39
+ # -SNAPSHOT versions.
40
+ - run : |
41
+ git update-index --assume-unchanged package.json
42
+ lein karma-once
35
43
- name : Slack notification
36
44
uses : homoluctus/slatify@v2.0.1
37
45
if : failure() || cancelled()
Original file line number Diff line number Diff line change 19
19
node_modules /
20
20
.shadow-cljs
21
21
shadow-cljs.edn
22
- package.json
23
22
package-lock.json
You can’t perform that action at this time.
0 commit comments