Skip to content

Commit ff53851

Browse files
committed
github actions fix again
1 parent a1fe4d3 commit ff53851

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/js-test-and-release.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,24 @@ jobs:
1717
with:
1818
node-version: lts/*
1919
- uses: ipfs/aegir/actions/cache-node-modules@master
20-
- uses: actions/setup-java@v2 # https://github.com/actions/setup-java#basic
21-
with:
22-
distribution: 'temurin'
23-
java-version: '17'
20+
- run: npm run gen
2421
- run: npm run --if-present lint
2522
- run: npm run --if-present dep-check
2623

24+
cache-generated:
25+
needs: check
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Cache generated files
29+
uses: actions/cache@v2
30+
env:
31+
cache-name: cache-generated-files
32+
with:
33+
path: generated
34+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('generated/**') }}
35+
restore-keys: |
36+
${{ runner.os }}-build-${{ env.cache-name }}-
37+
2738
test-node:
2839
needs: check
2940
runs-on: ${{ matrix.os }}
@@ -135,7 +146,8 @@ jobs:
135146
flags: electron-renderer
136147

137148
release:
138-
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
149+
# needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
150+
needs: [test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
139151
runs-on: ubuntu-latest
140152
if: github.event_name == 'push' && github.ref == 'refs/heads/main' # with #262 - 'refs/heads/${{{ github.default_branch }}}'
141153
steps:

0 commit comments

Comments
 (0)