22# Note: this file is automatically managed in template-node-lib #
33# ------------------------------------------------------------- #
44
5- on : push
5+ on :
6+ - push
7+ - workflow_dispatch
68
79name : push
810
4143 with :
4244 fetch-depth : 0
4345
44- - uses : github/super-linter@v4.0.2
46+ - uses : github/super-linter/slim @v4
4547 env :
4648 LOG_LEVEL : ERROR
4749 VALIDATE_ALL_CODEBASE : false
6163 - run : npm audit --audit-level=critical
6264
6365 test-strategy :
66+ needs :
67+ - commit-lint
68+ - super-linter
69+ - npm-audit
70+
6471 timeout-minutes : 5
6572
6673 runs-on : ubuntu-latest
7481 run : echo "::set-output name=matrix::$(jq -c . < .github/matrix.json)"
7582
7683 test-run :
77- needs :
78- - commit-lint
79- - super-linter
80- - npm-audit
81- - test-strategy
84+ needs : test-strategy
8285
8386 timeout-minutes : 5
8487
98101 with :
99102 submodules : true
100103
101- - uses : actions/cache@v2.1.6
104+ - uses : actions/cache@v2.1.5
102105 with :
103106 path : ~/.npm
104107 key : ${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
@@ -140,7 +143,7 @@ jobs:
140143
141144 runs-on : ubuntu-latest
142145
143- if : needs.release.outputs.published == 'true'
146+ if : ${{ needs.release.outputs.published == 'true' }}
144147
145148 steps :
146149 - uses : actions/checkout@v2
@@ -154,29 +157,30 @@ jobs:
154157
155158 - name : publish to github registry
156159 run : |
157- jq '.name = "@'${GITHUB_REPOSITORY/node-/}'"' package.json > /tmp/package.json; mv /tmp/package.json .
160+ jq '.name = "@'" ${GITHUB_REPOSITORY/node-/}" '"' package.json > /tmp/package.json; mv /tmp/package.json .
158161 npm version --no-git-tag-version v${{ needs.release.outputs.version }}
159162 npm publish
160163
164+
161165 template-sync :
166+ timeout-minutes : 20
167+
162168 needs :
163169 - metadata
164- - release
165-
166- timeout-minutes : 20
170+ - test-run
171+ - commit-lint
172+ - super-linter
167173
168174 # only runs on main branch and only for the template
169- if : ${{ github.ref == 'refs/heads/master' &&
170- fromJSON(needs.metadata.outputs.repository).is_template }}
175+ if : ${{ github.ref == 'refs/heads/master' && fromJSON(needs.metadata.outputs.repository).is_template }}
171176
172177 runs-on : ubuntu-latest
173178
174179 steps :
175- - uses : ahmadnassri/action-workflow-queue@v1
180+ - uses : ahmadnassri/action-workflow-queue@v1.1
176181
177182 - uses : actions/checkout@v2
178183
179- - uses : ahmadnassri/action-template-repository-sync@v1
184+ - uses : ahmadnassri/action-template-repository-sync@v1.6.0
180185 with :
181186 github-token : ${{ secrets.GH_TOKEN }}
182- dry-run : true
0 commit comments