mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
commit
2d59758ef7
3 changed files with 13 additions and 13 deletions
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
|
|
@ -13,8 +13,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ !github.event.created && github.repository != 'garronej/ts-ci' }}
|
if: ${{ !github.event.created && github.repository != 'garronej/ts-ci' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2.1.3
|
- uses: actions/setup-node@v3
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
- name: If this step fails run 'npm run lint' and 'npm run format' then commit again.
|
- name: If this step fails run 'npm run lint' and 'npm run format' then commit again.
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
needs: test_lint
|
needs: test_lint
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node: [ '15', '14' ]
|
node: [ '15', '14','16' ]
|
||||||
os: [ windows-latest, ubuntu-latest ]
|
os: [ windows-latest, ubuntu-latest ]
|
||||||
name: Test with Node v${{ matrix.node }} on ${{ matrix.os }}
|
name: Test with Node v${{ matrix.node }} on ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -38,8 +38,8 @@ jobs:
|
||||||
uses: garronej/ts-ci@v1.1.7
|
uses: garronej/ts-ci@v1.1.7
|
||||||
with:
|
with:
|
||||||
action_name: tell_if_project_uses_npm_or_yarn
|
action_name: tell_if_project_uses_npm_or_yarn
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2.1.3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- check_if_version_upgraded
|
- check_if_version_upgraded
|
||||||
steps:
|
steps:
|
||||||
- uses: softprops/action-gh-release@v0.1.14
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
name: Release v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
||||||
tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
tag_name: v${{ needs.check_if_version_upgraded.outputs.to_version }}
|
||||||
|
|
@ -103,12 +103,12 @@ jobs:
|
||||||
- create_github_release
|
- create_github_release
|
||||||
- check_if_version_upgraded
|
- check_if_version_upgraded
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
- uses: actions/setup-node@v2.1.3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '15'
|
node-version: '16'
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
- uses: bahmutov/npm-install@v1
|
- uses: bahmutov/npm-install@v1
|
||||||
- run: |
|
- run: |
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
IS_VALID_NODE_MODULE_NAME: ${{steps.id1.outputs.is_valid_node_module_name}}
|
IS_VALID_NODE_MODULE_NAME: ${{steps.id1.outputs.is_valid_node_module_name}}
|
||||||
IS_AVAILABLE_ON_NPM: ${{steps.id1.outputs.is_available_on_npm}}
|
IS_AVAILABLE_ON_NPM: ${{steps.id1.outputs.is_available_on_npm}}
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: |
|
- run: |
|
||||||
mv README.template.md README.md
|
mv README.template.md README.md
|
||||||
mv LICENSE.template LICENSE
|
mv LICENSE.template LICENSE
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
<i>#{DESC}#</i>
|
<i>#{DESC}#</i>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/garronej/#{REPO_NAME}#/actions">
|
<a href="https://github.com/#{USER_OR_ORG}#/#{REPO_NAME}#/actions">
|
||||||
<img src="https://github.com/garronej/#{REPO_NAME}#/workflows/ci/badge.svg?branch=main">
|
<img src="https://github.com/#{USER_OR_ORG}#/#{REPO_NAME}#/workflows/ci/badge.svg?branch=main">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://bundlephobia.com/package/#{REPO_NAME}#">
|
<a href="https://bundlephobia.com/package/#{REPO_NAME}#">
|
||||||
<img src="https://img.shields.io/bundlephobia/minzip/#{REPO_NAME}#">
|
<img src="https://img.shields.io/bundlephobia/minzip/#{REPO_NAME}#">
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<a href="https://www.npmjs.com/package/#{REPO_NAME}#">
|
<a href="https://www.npmjs.com/package/#{REPO_NAME}#">
|
||||||
<img src="https://img.shields.io/npm/dw/#{REPO_NAME}#">
|
<img src="https://img.shields.io/npm/dw/#{REPO_NAME}#">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/garronej/#{REPO_NAME}#/blob/main/LICENSE">
|
<a href="https://github.com/#{USER_OR_ORG}#/#{REPO_NAME}#/blob/main/LICENSE">
|
||||||
<img src="https://img.shields.io/npm/l/#{REPO_NAME}#">
|
<img src="https://img.shields.io/npm/l/#{REPO_NAME}#">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue